slim-template / ruby-slim.tmbundle

A Textmate / Sublime Text bundle for Slim
http://slim-lang.com/
MIT License
185 stars 46 forks source link

Tailwind CSS: support class names with `:`, `[]`, and `/` #83

Open bradgessler opened 2 years ago

bradgessler commented 2 years ago

When using Tailwind CSS classnames that contain :, [], and /, like below, are not highlighted as classnames:

Screen Shot 2022-02-24 at 09 51 29 Screen Shot 2022-02-24 at 09 53 43 Screen Shot 2022-02-24 at 09 55 52
bradgessler commented 2 years ago

The fork at https://github.com/bsboris/ruby-slim.tmbundle/commit/4c506cb6d5584635e6114443b46e7399d933e292 adds support for the characters mentioned above, with the exception of the [] characters.

Screen Shot 2022-02-24 at 10 10 27

Works otherwise:

Screen Shot 2022-02-24 at 10 11 01
bradgessler commented 2 years ago

Enhancement: make the CSS classes that attach directly to the entity highlight in a different color than the entity tag and the attributes.

bradgessler commented 2 years ago

FYI @bsboris if you're still hacking on the tmBundle. Looks like you've recently been in there :-)

deathaxe commented 1 year ago

This issue is fixed in Slim 2.0.

Slim 2.0 for ST4 has been released at Package Control, with source moved to https://github.com/SublimeText/Slim.

grafik

bradgessler commented 1 year ago

Thank you @deathaxe! 🙏