ruby-slim.tmbundle icon indicating copy to clipboard operation
ruby-slim.tmbundle copied to clipboard

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

Open bradgessler opened this issue 3 years ago • 5 comments

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 avatar Feb 24 '22 17:02 bradgessler

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 avatar Feb 24 '22 17:02 bradgessler

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

bradgessler avatar Feb 24 '22 18:02 bradgessler

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

bradgessler avatar Feb 24 '22 18:02 bradgessler

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

deathaxe avatar Jan 13 '23 16:01 deathaxe

Thank you @deathaxe! 🙏

bradgessler avatar Jan 13 '23 16:01 bradgessler