mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Fixed syntax error
This commit is contained in:
parent
ef81a0d0ee
commit
a534f2aa97
@ -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 ? "{/*" : "//";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user