pragmagic / vscode-nim

An extension for VS Code which provides support for the Nim language.
Other
235 stars 38 forks source link

The `not` keyword #34

Closed dom96 closed 7 years ago

dom96 commented 7 years ago

It seems that VS code does not consider not to be a keyword.

if not false:
  echo(42)

It should be highlighted the same as the if.

RSDuck commented 7 years ago

It does highlights not(https://github.com/pragmagic/vscode-nim/blob/master/syntaxes/nim.json#L152).

The problem is probably the theme you're using.

Evidence: grafik

dom96 commented 7 years ago

Pretty sure i'm using the default theme. I would still consider that a bug since most people are likely using the default.

RSDuck commented 7 years ago

My bad. Yes, indeed, the default themes don't highlight not, while all other themes I have installed do.