Skip to content
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

error highlight in scss file! #34

Closed
IndexXuan opened this issue Jan 21, 2016 · 5 comments
Closed

error highlight in scss file! #34

IndexXuan opened this issue Jan 21, 2016 · 5 comments

Comments

@IndexXuan
Copy link

VIM 7.4.52 in ubuntu 14.04

maybe conflict with scss-syntax.vim plugin

the problem is if I use your plugin, I have right css3 highlight, while error highlight in nested scss syntax, parent's right '}' is always highlight for error.

.parent { 
  width: 100px; 
  height: 100px;

  .child{
    width: 10px; 
    height: 10px;
  } 
} // highlight here...

If I don't use your plugin, I will not have right css3 highlight...

while

rm ~/.vim/bundle/vim-css3-syntax/after/syntax/scss.vim

Both works.

Maybe the problem in my pc...

@hail2u
Copy link
Owner

hail2u commented Jan 21, 2016

Your example code uses full-width spaces for indentation. I’m very confused. Please paste the correct example and upload a screenshot of error!

@IndexXuan
Copy link
Author

sorry for my indentation fault...

isn't it useless to install scss-syntax.vim?

.parent {
    width: 100px; 
    height: 100px;

    .child {
        width: 10px; 
        height: 10px;
    } 
} // should not highlight here...

you can see like this.
scss-nested-highlight-error-201601211540

after rename the /.vim/bundle/vim-css3-syntax/after/syntax/scss.vim as scss-back.vim

it becomes well enough~

screenshot from 2016-01-21 15 46 08

3q for all you have done, 3q~

@hail2u
Copy link
Owner

hail2u commented Jan 21, 2016

It seems to break child selector (.child) highlighting not only }. So, it is a bug of a nesting highlight.

vim-css3-syntax plugin doesn’t have these type of highlight. I think this is a problem of scss-syntax.vim. I will look it.Thanks for reporting!

@IndexXuan
Copy link
Author

so I remove scss-syntax.vim plugin, it stilllll...
while, just rename scss.vim in your plugin to scss-back.vim, its ok~
it seems that scss-syntax.vim is not that useful in newest version vim.

Thanks for your attention~ 3q very much !

@hail2u
Copy link
Owner

hail2u commented Jan 22, 2016

Good to know. I cannot reproduce your problem. If some similar problem happen, open this issue again.

@hail2u hail2u closed this as completed Jan 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants