ThisIsMissEm / jade-tmbundle

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

more than one space between attribute and value causes incorrect highlighting #32

Open nickperkinslondon opened 10 years ago

nickperkinslondon commented 10 years ago

I am programming AngularJS with Jade, and I often have many attributes on a single element.

If I put each attribute on it's own line, and line-up the equal-signs ( by adding extra spaces between the attribute and the equals-sign...the syntax highlighting gets all messed up.

The problem does not depend on using multiple lines, however, it is only necessary to put 2 spaces just before the equals-sign ( or after it ), and the syntax highlighting goes wrong.

Note that the compiler does not mind these extra spaces -- it still works fine. The highlighter should work the same as the compiler.

trevershick commented 10 years ago

I attempted to duplicate this issue in TextMate 2 but I am unable to. Are you using TextMate2 or SublimeText2?

layout_jade__local__git__s65089_

nickperkinslondon commented 10 years ago

sublime text

On Fri, Apr 25, 2014 at 7:34 PM, Trever Shick notifications@github.comwrote:

I attempted to duplicate this issue in TextMate 2 but I am unable to. Are you using TextMate2 or SublimeText2?

[image: layout_jadelocalgit_s65089]https://cloud.githubusercontent.com/assets/509549/2806737/ff119d5a-ccd1-11e3-814f-1116064ee4c5.png

— Reply to this email directly or view it on GitHubhttps://github.com/miksago/jade-tmbundle/issues/32#issuecomment-41449153 .

Nick Perkins