-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Wrong cursorOffset with multi-line comment #14811
Copy link
Copy link
Labels
area:rangesIssues about formatting/ignoring/etc segments of filesIssues about formatting/ignoring/etc segments of fileslang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
area:rangesIssues about formatting/ignoring/etc segments of filesIssues about formatting/ignoring/etc segments of fileslang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Environments:
Steps to reproduce:
Save this script and run it:
Expected behavior:
Expect the returned
cursorOffsetto be around 129, right in the{}.Actual behavior:
It returns 65, which is in the comments.
Frankly, I don't even find a minimal case to reproduce this issue (the code above is all I could make, changing any line of the comment may make the result correct).