atom-jade icon indicating copy to clipboard operation
atom-jade copied to clipboard

Highlighting and language parsing issues.

Open chemoish opened this issue 9 years ago • 5 comments

I believe this got worse after the last upgrade.

screen shot 2014-09-10 at 11 46 18 am

chemoish avatar Sep 10 '14 18:09 chemoish

cc @luisfontes

devongovett avatar Sep 10 '14 19:09 devongovett

Hmm I'll check that

luisfontes avatar Sep 10 '14 19:09 luisfontes

@chemoish could you provide me with more context of your code? I couldn't reproduce the bug.

screen shot 2014-09-13 at 12 13 12

luisfontes avatar Sep 13 '14 15:09 luisfontes

@luisfontes looks like it's the number of spaces before the = that follows an attribute. In your example, you have exactly 1 space. Where in @chemoish's example, some have more than 1 space...

screen shot 2014-09-13 at 5 02 44 pm screen shot 2014-09-13 at 5 02 30 pm

... having more than 1 space after the = also seems to be affected as well...

screen shot 2014-09-13 at 4 58 44 pm screen shot 2014-09-13 at 4 59 09 pm

peterwmwong avatar Sep 13 '14 22:09 peterwmwong

@luisfontes It looks like the first attribute that has a space "issue", will cause the formatting to be incorrect for all following attributes.

Is there a way we can capture and ignore all spaces between attribute names and values?

Since I primarily develop in AngularJS, I have tons of attributes, thus, I keep them on separate lines. The spacing is because I align them with https://github.com/chemoish/atom-valign.

If this is too much of a one off, please close.

chemoish avatar Sep 14 '14 00:09 chemoish