CSS3 icon indicating copy to clipboard operation
CSS3 copied to clipboard

`:global()` support

Open ehzro3 opened this issue 3 years ago • 2 comments

Screen Shot 2021-12-22 at 11 16 15

Hi :)

I'm using CSS3 with Svelte, and it seems CSS3 doesn't get Svelte global(). Could they know each other better?

ehzro3 avatar Dec 22 '21 02:12 ehzro3

this package seeks to follow the specs and :global is a concept from CSS Modules. IMO it shouldnt be part of this package, but I do empathize with wanting to see that properly highlighted.

i've "shown the package contents" for the plugin and edited CSS3.sublime-syntax so global highlights, check it out:

Screen Shot 2022-01-04 at 11 21 16 AM

before: before

after: after

took me just a minute or 2, and should allow you to pacify that nagging highlighting. thoughts on a self patch instead of having the fix be upstream?

argyleink avatar Jan 04 '22 19:01 argyleink

Would like to see this in upstream too. Not sure how to show package contents.

There's quite a lot of usage of :global(). Github search tells me 18.1k files.

https://github.com/search?q=language%3Asvelte+%3Aglobal%28&type=code

related: :global {} https://github.com/sveltejs/svelte-preprocess#global-rule

mustafa0x avatar Feb 18 '23 15:02 mustafa0x