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

Interferes with vims own sass syntax definition #9

Closed
sriedel opened this issue May 30, 2012 · 2 comments
Closed

Interferes with vims own sass syntax definition #9

sriedel opened this issue May 30, 2012 · 2 comments

Comments

@sriedel
Copy link

sriedel commented May 30, 2012

After installing Better CSS Syntax, when I open a SASS file, I get the following errors and warnings displayed by vim:

"app/assets/stylesheets/default.css.scss" 18L, 848C
Error detected while processing /usr/share/vim/vim73/syntax/sass.vim:
line   16:
E409: Unknown group name: cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
E475: Invalid argument: cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
E400: No cluster specified
E475: Invalid argument: sassCssAttributes contains=css.*Attr,scssComment,cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
E409: Unknown group name: cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
E475: Invalid argument: cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
E400: No cluster specified
E475: Invalid argument: sassCssAttributes contains=css.*Attr,scssComment,cssValue.*,cssColor,cssURL,sassDefault,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssRenderProp
Press ENTER or type command to continue
@chrisyip
Copy link
Owner

Unfortunately, this script only work with standard CSS file.

Sass syntax script requires the original CSS syntax script, or any script that follows original's design pattern.

I didn't follow the design pattern for some purposes.

For example, original doesn't support indicating if there's a prefix like -webkit- or which part is a unit like px.

And according of feature voting in vim.org, the next big version may introduce Python as built-in script language.

I'm waiting for it.

For now, I suggest you to try css3 syntax or vim-css3-syntax.

Or if you wanna use my script, there's two ways:

  • edit sass.vim, go to line 16, delete cssValue.*,

or

  • edit your .vimrc, add au BufRead,BufNewFile *.sass set filetype=css

@sriedel
Copy link
Author

sriedel commented May 31, 2012

Thanks for your reply. You may want to add the .vimrc config snippet to your readme, as I ran into the error while relying on vims default behavior (it could also come from the rails.vim plugin, not entirely sure there). I'm sure other people will encounter the warnings as well :)

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