HarlemSquirrel / language-haml

Haml language grammar for GitHub's Atom IDE
MIT License
33 stars 24 forks source link

Fix missing interpolation highlighting on GitHub #61

Closed Alhadis closed 7 years ago

Alhadis commented 7 years ago

This is essentially just duplicating Ruby's string-matching rule so it highlights interpolation correctly on GitHub:

/ HAML comment
- # ruby comment
string
= "string"
= "string" #comment
= "string #{not_comment 2 + 2 + string} string" # comment

Output:

Figure 1
ezekg commented 7 years ago

Released a new patch version containing the fix. Thanks for the help. 👌