Files
vim-haml/syntax/scss.vim
Antonio Ospite d580aa3a3f Fix highlighting comments in scss files
The sccs syntax file imports the definitions of the sass indented syntax
where comments follow some indentation rules[1].

These indentation rules are not valid in the scss syntax[2], and their
visual rendering is confusing.

So delete the syntax items referring to sass comments files before using
the newly defined ones.

Also derive the visual style directly from Comment instead of
sassComment, just to stress that the comment definitions are distinct
from the sass ones.

[1] http://sass-lang.com/documentation/file.INDENTED_SYNTAX.html#comments
[2] http://sass-lang.com/documentation/file.SASS_REFERENCE.html#comments

Closes #78.
2017-07-19 14:23:01 -04:00

26 lines
526 B
VimL

" Vim syntax file
" Language: SCSS
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
" Filenames: *.scss
" Last Change: 2010 Jul 26
if exists("b:current_syntax")
finish
endif
runtime! syntax/sass.vim
syn clear sassComment
syn clear sassCssComment
syn clear sassEndOfLineComment
syn match scssComment "//.*" contains=sassTodo,@Spell
syn region scssCssComment start="/\*" end="\*/" contains=sassTodo,@Spell
hi def link scssCssComment scssComment
hi def link scssComment Comment
let b:current_syntax = "scss"
" vim:set sw=2: