jcberquist / sublimetext-cfml

CFML (ColdFusion and Lucee) package for Sublime Text
MIT License
115 stars 24 forks source link

Syntax highlighting breaks after inline style attribute in tag #128

Closed alxmckny closed 5 years ago

alxmckny commented 5 years ago

Hi @jcberquist, The CFML syntax highlighting in ST3 seems to be breaking after an inline style attribute in any standard HTML tag in a .cfm document:

Screen Shot 2019-07-08 at 3 33 15 PM

If I change the attribute to data-style, the issue disappears:

Screen Shot 2019-07-08 at 3 34 35 PM

If I switch the syntax in ST3 to "HTML" the issue disappears as well:

Screen Shot 2019-07-08 at 3 33 49 PM

I have tried disabling any associated 3rd party packages just in case, but it doesn't seem to help the issue. Can you replicate this on your end, or have any ideas as to what may cause this?

jcberquist commented 5 years ago

I can't reproduce this on my end. I do see in your 3rd image, where you selected HTML as the syntax, that the CSS in the style attribute is not highlighted as CSS. That suggests to me that something non-standard is going on, since with the default packages that should be highlighted. Did you add CSS to your ignored packages list in your preferences?

EDIT: if I ignore the CSS package in my preferences file, I see the same behavior.

alxmckny commented 5 years ago

I did have CSS in my ignored packages. I tried removing that and the issue is still there for me. Any other ideas on what to try?

jcberquist commented 5 years ago

Can you confirm that you have CSS as a syntax choice in your syntax menu? Do you have a third party CSS syntax installed?

alxmckny commented 5 years ago

Yes. I have CSS and CSS3 in the syntax menu:

Screen Shot 2019-07-08 at 5 42 32 PM

jcberquist commented 5 years ago

Could you try disabling CSS3?

alxmckny commented 5 years ago

Disabling CSS3 worked! Thank you for helping troubleshoot this issue.

jcberquist commented 5 years ago

Glad to hear it. There has been trouble in the past as well with getting this package to work specifically with CSS3.