Skip to content

Javascript multi-line comment mis-identifies ending inside string literal #111941

@gitgitwhat

Description

@gitgitwhat
  • VSCode Version: Latest
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open/create a Javascript file.

  2. Create a string that contains the multi-line comment ending sequence.
    var s = "some string */";

  3. Now wrap the string in a multi-line comment. The parser picks up the symbol in the string as the ending.

Does this issue occur when all extensions are disabled?: Yes/No
Yes

Metadata

Metadata

Assignees

Labels

*as-designedDescribed behavior is as designedjavascriptJavaScript support issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions