alohaas / language-nunjucks

Syntax highlighting for nunjucks templates in atom.
MIT License
42 stars 13 forks source link

Pattern for raw tags now works with '-' for whitespace control #29

Closed ftm closed 7 years ago

ftm commented 7 years ago

This fixes a bug where the - character used to trim leading/trailing whitespace caused the pattern used to find {% raw %} tags to not find it anymore. I added -? to the start and end patterns just like what has been done to capture them in other patterns.

Before: peek 2017-09-25 19-20

After: peek 2017-09-25 19-21