Skip to content

Commit

Permalink
add charset highlighting
Browse files Browse the repository at this point in the history
it uses the same highighting as @import
  • Loading branch information
jigfox committed Mar 22, 2014
1 parent 3327947 commit 3e54f9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/sass.vim
Expand Up @@ -58,6 +58,7 @@ syn match sassAmpersand "&"
" TODO: Attribute namespaces
" TODO: Arithmetic (including strings and concatenation)

syn region sassCharset start="@charset" end=";\|$" contains=scssComment,cssStringQ,cssStringQQ,cssURL,cssUnicodeEscape,cssMediaType
syn region sassInclude start="@import" end=";\|$" contains=scssComment,cssStringQ,cssStringQQ,cssURL,cssUnicodeEscape,cssMediaType
syn region sassDebugLine end=";\|$" matchgroup=sassDebug start="@debug\>" contains=@sassCssAttributes,sassVariable,sassFunction
syn region sassWarnLine end=";\|$" matchgroup=sassWarn start="@warn\>" contains=@sassCssAttributes,sassVariable,sassFunction
Expand All @@ -82,6 +83,7 @@ hi def link sassExtend PreProc
hi def link sassFunctionDecl PreProc
hi def link sassReturn PreProc
hi def link sassTodo Todo
hi def link sassCharset Include
hi def link sassInclude Include
hi def link sassDebug sassControl
hi def link sassWarn sassControl
Expand Down

0 comments on commit 3e54f9f

Please sign in to comment.