Skip to content

Simple string breaks vscode's and github's syntax highlighting #809

Closed
@pushkine

Description

@pushkine
  • VSCode Version: 1.42.1
  • OS Version: windows_nt 1903

Paste the following line into a javascript file :

;(false ? '' : ') =>') + ''

anything coming after it won't get parsed

console.log()
Object.assign()
;(false ? '' : ') =>') + ''
console.log()
Object.assign()

...github breaks on it too, guess y'all use the same stuff

edit :
github fails on preview but still applies syntax after posting
on vscode, the first example only breaks the following line,
here is another that breaks the whole end of the file

(false ? '' : ') =>') + `${''}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions