davidrios / jade-tmbundle

A comprehensive textmate / sublime text bundle for the Jade template language.
https://github.com/davidrios/jade-tmbundle
MIT License
102 stars 31 forks source link

Correct highlighting for Class & Id literals #83

Closed mrmlnc closed 8 years ago

mrmlnc commented 8 years ago

Hello, @davidrios,

I think we must provide correct scope for class and id literals.

First, class and id literals is attributes and tags - just a little different. See attributes.html#class-literal and attributes.html#id-literal.

Also I provides invalid.illegal.tag.jade for invalid id literals.

Before fix (Sublime Text 3 with you package):

image

After fix (Sublime Text 3 with you package):

image

davidrios commented 8 years ago

Partially implemented with 5e7bc057b333588a4601d660aa170214c88ba46d.