mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed syntax error
This commit is contained in:
1 parent
ef81a0d0ee
commit
a534f2aa97
1 file changed
+1
-1
@@ -2009,7 +2009,7 @@ namespace ts {
|
||||
|
||||
let isCommenting = insertComment || false;
|
||||
let leftMostPosition = Number.MAX_VALUE;
|
||||
const lineTextStarts = new Map<number>();
|
||||
const lineTextStarts = new Map<string, number>();
|
||||
const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
|
||||
const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
|
||||
const openComment = isJsx ? "{/*" : "//";
|
||||
|
||||
Reference in new issue
Block a user