crystal-lang-tools/vscode-crystal-lang

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

Closed this issue ยท 1 comments

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 ๐Ÿ‘ 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?

Good catch! Thank you!