scss-syntax.vim
scss-syntax.vim copied to clipboard
Highlighting lost when inside selector
Here is the list of plugins I have installed, if it's any help. My .vimrc is pretty long, so I won't paste it here, but if anyone has any ideas for specific places to look at, I'd appreciate it.
editorconfig/editorconfig-vim gorodinskiy/vim-coloresque hail2u/vim-css3-syntax cakebaker/scss-syntax.vim altercation/vim-colors-solarized tmux-plugins/vim-tmux elzr/vim-json pangloss/vim-javascript othree/html5.vim mustache/vim-mustache-handlebars lepture/vim-velocity evidens/vim-twig tmux-plugins/vim-tmux-focus-events Valloric/MatchTagAlways mattn/emmet-vim tpope/vim-surround jiangmiao/auto-pairs amirh/HTML-AutoCloseTag briandoll/change-inside-surroundings.vim Lokaltog/vim-easymotion terryma/vim-multiple-cursors bling/vim-airline edkolev/tmuxline.vim scrooloose/nerdtree jistr/vim-nerdtree-tabs kien/ctrlp.vim mbbill/undotree nathanaelkane/vim-indent-guides Shougo/neocomplete.vim Shougo/neosnippet Shougo/neosnippet-snippets tpope/vim-fugitive airblade/vim-gitgutter gregsexton/gitv rking/ag.vim tomtom/tcomment_vim godlygeek/tabular moll/vim-bbye
Hm.
If you add the following two lines to your .vimrc
:
set laststatus=2
set statusline+=%{synIDattr(synID(line('.'),col('.'),1),'name')}
What is shown when you move your cursor over the @extend %that;
inside the selector?
And does the highlighting still fail if you strip down the example code to the bare minimum?
.this {
@extend %that;
}
Closing this ticket as I'm unable to reproduce it. Please re-open with more information.
@cakebaker -
Sorry for not having replied. I saw your comment when at work, and it just slipped my mind.
highlighting still fails for just
.this {
@extend %that; // <== not highlighted
}
.another {
@include some-mixin(args); // <== not highlighted
@include some-mixin; // <== not highlighted
}
Adding the lines you suggested to my .vimrc
shows no relevant output.
Placing the cursor on the pseudo selector shows scssSelectorName
.
Placing it on vertical-align
shows cssTextProp
.
Please let me know if there is any other info that could be helpful.
The scssSelectorName
is correct. Does the highlighting work if you disable all other plugins?
Ok, it seems to be a conflict with hail2u/vim-css3-syntax. Everything is highlighted correctly after I removed it.
Figuring out what causes the conflict would be good though, as it vim-css3-syntax
is somewhat useful.
Thanks for your help!
Strange, I use the same plugin without problem... Do you use the latest version? And what Vim version do you use?
Yes, latest version. VIM 7.4
On Sun, Jan 17, 2016, 18:18 Daniel Hofstetter [email protected] wrote:
Strange, I use the same plugin without problem... Do you use the latest version? And what Vim version do you use?
— Reply to this email directly or view it on GitHub https://github.com/cakebaker/scss-syntax.vim/issues/64#issuecomment-172346299 .
You may have already solved this problem, but I was noticing a similar issue and came across this ticket. In my case it seems to have been caused by the rainbow parentheses vim plugin I had installed. I removed that plugin and scss highlighting seems to be working as expected. (I also tried with a different rainbow parentheses plugin and it seemed ok, but I decided the plugin wasn't really necessary).