Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less than (<) symbol after typescript type cast breaks all following syntax highlighting. #647

Closed
mjbvz opened this issue Aug 20, 2018 · 0 comments
Assignees

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Aug 20, 2018

From @Glinkis on August 17, 2018 14:37

When casting a value and performing a less than check straight after, it breaks all following syntax highlighting.

screen shot 2018-08-17 at 16 38 11 vs screen shot 2018-08-17 at 16 38 22

  • VSCode Version: 1.26.1
  • OS Version: macOS High Sierra 10.13.6

Steps to Reproduce:

// Correct colors.
function doesSomething(value: number) {
  if (value as number > 10) {
    return "huh"
  } else {
    return null;
  }
}
// Wrong colors.
function doesSomething2(value: number) {
  if (value as number < 10) {
    return "huh"
  } else {
    return null;
  }
}

Copied from original issue: microsoft/vscode#56689

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant