Skip to content

VSCode: Incorrect syntax highlighting/coloring in js file #549

@mjbvz

Description

@mjbvz

From @philrb on December 5, 2017 14:48

  • VSCode Version: Version 1.18.1
  • OS Version: Windows 7 Professional

Steps to Reproduce:

  1. Enter for following code into a js file:
function foo(x, y){
    if(x < y || (x > (y))){
    }
    return 'of the jedi';
}
  1. Observe that the syntax coloring from "< y || onwards is incorrect, and for any further methods/code added after this function. (variables/functions are colored green).

  2. Delete the brackets inside the if(....){ expression.

  3. You can see that the syntax highlighting was previously incorrect, now it is fixed.
    dllhost_2017-12-05_14-40-57

https://pasteboard.co/GWOw6gU.png

Reproduces without extensions: Yes

Copied from original issue: microsoft/vscode#39695

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