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
279 stars 58 forks source link

Adds fresh variables to the syntax #53

Closed laginha87 closed 6 years ago

laginha87 commented 6 years ago

https://crystal-lang.org/docs/syntax_and_semantics/macros/fresh_variables.html

I don't know much about syntaxes, I just made this change which turned this:

screen shot 2018-04-27 at 19 36 18

into this

screen shot 2018-04-27 at 19 36 01

I have no idea how to change it to not match on the . though.

faustinoaq commented 6 years ago

I have no idea how to change it to not match on the . though.

Nice PR, What about highlighting entirely all words with %? so, %code.lines.size would be all red, WDYT?

faustinoaq commented 6 years ago

Hi @laginha87 I think I gonna replace my custom crystal.json syntax by official TextMate Crystal.tmLanguage or Sublime Crystal.tmLanguage :sweat_smile: WDYT?

Mainly because there is some issues with this: see bug syntax issues

faustinoaq commented 6 years ago

I gonna merge it now, although crystal.json file may be replaced in the future