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
275 stars 57 forks source link

Method names that start with a macro interpolation will show gray syntax highlighting #190

Closed jwoertink closed 4 months ago

jwoertink commented 4 months ago

If you prepend a variable or method name with _, the syntax highlighting will gray it out as if to tell you that this thing isn't being used. This is a great feature :+1: However, if you are generating methods using some macro magic, they will also show up grayed out...

You can see here that _count and _query are gray since they start with a macro variable.

image

But methods that have the macro on the other side don't since they don't start with the underscore _.

image

Not a huge deal, but it could probably check if it starts with }}_ then don't do this gray highlight?

nobodywasishere commented 4 months ago

Good catch! Thank you!