-
Notifications
You must be signed in to change notification settings - Fork 24
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
css not highlighted inside of function, or when cast to a variable. #56
Comments
Incase anyone else has run into this, my current hack is: syn region styledDefinition start=/css`/ skip=+\\`+ end=+`+ containedin=ALL contained transparent fold extend
\ contains=@CSSTop,
\ css.*Prop,cssValue.*,cssColor,cssUrl,cssImportant,cssError,
\ cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,
\ cssHacks,
\ cssCustom.*,
\ jsComment,jsTemplateExpression,
\ typescriptInterpolation,typescriptTemplateSubstitution,
\ styledAmpersand,styledNestedRegion |
Hello @cj please make sure to provide a minimal vimrc that allows me to reproduce the above mentioned highlighting. Otherwise I don't know how to help you. |
@fleischie Sorry about that, here you go https://gist.github.com/cj/95337089bbc241407e7ae94e725e3ff0 If you need anything else let me know! |
@cj I think I found the issue, either I never bothered to add support or it may have changed but the issue you were referring to was specifically a HerringtonDarkholme/yats.vim related issue. This plugin registers tagged templates with a different name than the plugins that I used, so it was just a matter of time until it didn't work properly for someone's setup. Anyway, I pushed a commit, that should allow highlighting of the mentioned And if you're at it, I would really appreciate you going through the other example files in the |
@fleischie thank you! I really appreciate it! Here are some broken things I found going through the examples: There was also one issue I found that was not included in your examples: |
@cj I really do appreciate you taking the time to investiage all of this. If I find the time I will address these. |
Hey @cj I am kind of embarrassed to admit that I forgot to investigate this because I never took the time... Using the vimrc you provided and looking at the files you mentioned, I wasn't really able to reproduce the shown misconfigurations. (Some are necessary, though, for example Let me know, if you still have the above mentioned issues and maybe my setup guards me from the seen behaviors/highlights.... |
I am also seeing this with Typescript. For example in I am using vim-polygot via janus. |
It appears to not be highlighting inside of functions i.e.:
Or when cast to a variable:
This is it working when it's not inside or function or being cast to a variable:
The text was updated successfully, but these errors were encountered: