Skip to content

Syntax highlighting for variable using a keyword #252

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

Closed
Deathspike opened this issue Apr 12, 2015 · 1 comment
Closed

Syntax highlighting for variable using a keyword #252

Deathspike opened this issue Apr 12, 2015 · 1 comment

Comments

@Deathspike
Copy link

When I define a variable that uses a keyword as name, like this:

interface ITest {
  a: number;
  b: number;
  number: number;       // Weird highlighting.
  string: string;       // Weird highlighting.
}

var a = <ITest>{
  a: 100,
  b: 100,
  number: 123,          // Weird highlighting.
  string: 'Hello world' // Weird highlighting.
}

The variable name will be highlighted as if it is a keyword. It would be nice if it would remain the normal color.

@basarat
Copy link
Member

basarat commented Apr 12, 2015

Duplicate of : #71

We need to look into how it can be supported by Atom.

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

No branches or pull requests

3 participants