ThisIsMissEm / jade-tmbundle

[DEPRECATED] A textmate bundle for the Jade language
http://jade-lang.com
220 stars 79 forks source link

wrong attribute matching if name contains "-" #22

Open dorny opened 12 years ago

dorny commented 12 years ago

Hi,

when attribute name contains "-", only second part is highlighted. For example: in "data-bind" only "bind" si matched and highlighted

problem is here: "patterns": [ { "name": "attributes.tag.jade", "begin": "([a-z]\w+)(=)",

should be: "patterns": [ { "name": "attributes.tag.jade", "begin": "([a-z][A-Za-z0-9_-]+)(=)",

efolio commented 11 years ago

don't forget the "?" at the end :)

"begin": "([a-z][A-Za-z0-9_-]+)(=)?",