windicss / windicss-intellisense

Intelligent WindiCSS tooling for VS Code
https://marketplace.visualstudio.com/items?itemName=voorjaar.windicss-intellisense
MIT License
194 stars 16 forks source link

Add `classList` support for solidjs #292

Closed kidqueb closed 2 years ago

kidqueb commented 2 years ago

Looking back at this it may be incorrect. I'm terrible at regex.

Solid's classList is an object like classList={{ 'class other-class': isSomeCondition }}

Should it be String.raw`(\s+class(Name|List)?\s*=\s*{?\s*["'\`\{])[^"'\`\}]*$`; instead? Adding \{ and \} to their respective blocks like ["'\`\{]? I tried to test it a bit with regexr but i cant even get the original string to match.

Sorry for the run around 😭

alexanderniebuhr commented 2 years ago

@kidqueb thanks for the information, and an example for solid. I will get this working sooner or later. A big new release is coming up. Just needs some more time.