crystal-lang-tools/vscode-crystal-lang

Weird syntax highlighting

andraantariksa opened this issue · 2 comments

Hi @andraantariksa

I can confirm the weird syntax in (two_byte << 8) | (two_byte >> 8)

Here some captures:

Right behavior? https://carc.in/#/r/8t1b

image

VSCode Default Dark+ Theme

image

VSCode One Dark Pro Theme

image

VSCode One Dark Theme

image

I think this may be some issue with crystal.json converted from Crystal.tmLanguage

I tested this extension using Crystal.tmLanguage and looks like this:

image

VSCode Dark+ theme:

image

VSCode One Dark Pro Theme:

image

VSCode One Dark Theme:

image

A workaround could be replacing crystal.json by original Crystal.tmLanguage based on Ruby.

WDYT?

The first one looks better for me. From what I see in C++ language syntax highlighting, the variable that coming from function argument will be in red color and the other variable will be in white.

VSCode One Dark Pro Theme

https://imgur.com/o5RJItX.png