crystal-lang-tools / vscode-crystal-lang

Yet another VSCode extension for Crystal Programming Language
https://marketplace.visualstudio.com/items?itemName=crystal-lang-tools.crystal-lang
MIT License
276 stars 58 forks source link

Correctly highlight `%Q(...)` and others #129

Closed asterite closed 3 years ago

asterite commented 3 years ago

The syntax highlighting for %Q(...) conflicts with that of free variables inside macros, such as %hello. It conflicts because %Q... is taken to be a free variable, when it shouldn't. So, this PR excludes some specific patterns for the "free variables" syntax matching.

Fixes #128

max-bertinetti commented 3 years ago

Thanks @asterite