chrisyip / Better-CSS-Syntax-for-Vim

Better CSS Syntax for Vim
57 stars 8 forks source link

Interferes with vims own sass syntax definition #9

Closed sriedel closed 12 years ago

sriedel commented 12 years ago

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 commented 12 years ago

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:

or

sriedel commented 12 years ago

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 :)