Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Interferes with vims own sass syntax definition #9

Closed
sriedel opened this Issue May 29, 2012 · 2 comments

2 participants

Sven Riedel Chris Yip
Sven Riedel
sriedel commented May 29, 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
Chris Yip
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
Sven Riedel
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 :)

Sven Riedel sriedel closed this May 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.