New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding another className regex (PureScript) #8
Comments
I have never used You may want to debug the regex checks with this. https://github.com/heybourn/headwind#debugging-custom-regex |
I'm not sure if I configure Let's say I want to test it by configuring "tailwindCSS.enable": true,
"tailwindCSS.headwind.classRegex": {
"html": "\\bwrong\\s*=\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']"
}, Is configuring |
I checked the no matching setting in DEMO (mp4):
coc-tailwindcss3-headwind-class-regex.mp4 |
Thanks a lot for looking into it and providing the screencast. I'm not sure how to progress from here. I don't want to waste your time, but if you feel the urge, you can try out to modidy But at this point I assume it's more likely that the issue would be related to setup or configuration on my end. So don't feel bother about this issue and free to close it. |
I used your repository in my environment and tried it. It worked fine with your regex in my environment. coc-tailwind3-purescript-headwind.mp4 |
Added headwind regex logs feature. #10 Here is a demo in your repository. coc-tailwindcss3-andys8-repo-headwind-log.mp4This issue is closed as it works fine in my environment. 🙇 |
Hey, thanks to your help I got it sorted out. First I was wondering why you're testing with sorting classes ( Then I tried also configuring Configuring all of these will then work nicely. "tailwindCSS.enable": true,
"tailwindCSS.experimental.classRegex": [
"\\bclassName\\s*:\\s*\\\"([_a-zA-Z0-9\\s\\-\\:\\/]+)\\\""
],
"tailwindCSS.headwind.classRegex": {
"purescript": "\\bclassName\\s*:\\s*\\\"([_a-zA-Z0-9\\s\\-\\:\\/]+)\\\""
},
"tailwindCSS.includeLanguages": {
"purescript": "javascriptreact"
} Changing |
Hi there, I would like to give
coc-tailwindcss3
a shot with PureScript (React).I didn't get it to work yet. Once it's working I would like to open a pull request to add it to the list of class regexes (similar to reason and elm).
Debugging
Classes look like this:
element progress { className: "w-56 flex" }
The coc-config is this: Is the regex fine? Do I need to set a different value? Escaping okay?
What I tried so far
purs
(the extension name) instead ofpurescript
index.html
the extension is working finecoc-settings.json
is recognized because I can disable the language server (and html stops working)CocCommand tailwindCSS.forceActivate
in case the file wouldn't be recognizedScreenshots
HTML ✔️
PureScript 👎
Regex on regex101.com
The text was updated successfully, but these errors were encountered: