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
Syntax highlighting seems incomplete or somehow broken for me #34
Comments
thanks for the report @adambrault, that does look a little borked, what is the result of this file?: https://github.com/wavded/vim-stylus/blob/master/test.styl still nasty? |
I have an incredibly minimalist vim theme, what theme do you have? maybe i'm not seeing enough colors |
I am using https://github.com/w0ng/vim-hybrid. The problem seems to be very noticeable with nested rules. |
I used git bisect to track down the commit that introduced this issue and it points to 456019a. Reverting these changes makes my stylus files look more like this: |
something else seems to be amiss, my test.styl file is fine at the current release, this is using the hybrid theme. stylus does depend on css.vim being current on your vim install, what release of vim are you on? that particular commit you referenced fixed the require line up top of the test.styl file from commenting the rest of the file. |
I'm running vim 7.4.52 |
ok, i'll try to update, did you install through
|
Yes, I'm running Mavericks and run the terminal vim that comes with MacVim. I installed it from homebrew by running |
@nicknisi sorry for my late response on this, whilst running 7.4.52, it still shows up just like the screenshot above... not sure what else I can try, sorry about that |
I am having the same issue. My stylus is highlighted very similarly to the way that @nicknisi's is in his second image. It seems like the brackets are killing the highlighting. |
The problem is syn match stylusImportList "[^;]\+" contained contains=cssString.*,cssMediaType,cssURL It specifies syn region cssDefineBlock start="{" end="}" transparent contains=ALL which unexpectedly contains |
improve cssDefineBlock: do not contain stylusImportList (rel #34)
confirmed, this patch looks good to me, i've merged it in. thanks @itchyny , if anyone has any issues or confirmations to add, please comment. |
Just updated and it looks great! Thanks! |
Working for me as well now :) Thanks for the patch. |
I just installed vim-stylus and the syntax highlighting doesn't seem right to me:
My guess is that there's more syntax highlighting that should be going on than just that.
It's possible—if not likely—that something is borked for me, but I just installed vim-jade and it's working great, as are the rest of my syntax highlighting and configurations.
The text was updated successfully, but these errors were encountered: