genoma / language-pug

A Pug (was Jade) syntax highlighting for Atom, derived from https://github.com/davidrios/jade-tmbundle
MIT License
26 stars 8 forks source link

Broken syntax highlighting for attributes starting with certain special characters #15

Closed hansede closed 7 years ago

hansede commented 7 years ago

screen shot 2016-12-13 at 9 46 25 am

In the attached image, notice the second attribute is colored white, while the first attribute is colored orange, in spite of both starting with the same special character.

hansede commented 7 years ago

My mistake, this isn't valid Pug syntax in spite of being valid in HTML. I missed this part of the Pug docs:

If your attribute name contains odd characters that might interfere with JavaScript syntax, either quote it using "" or '', or use commas to separate different attributes.