mirror of
https://github.com/tpope/vim-haml.git
synced 2026-10-13 16:39:07 +08:00
Highlight @if, @while, and @for
This commit is contained in:
1 parent
4b23eccc45
commit
d8d48f24b9
1 file changed
+4
@@ -32,6 +32,8 @@ syn match sassAmpersand "&"
|
|||||||
" TODO: Arithmetic (including strings and concatenation)
|
" TODO: Arithmetic (including strings and concatenation)
|
||||||
|
|
||||||
syn region sassInclude start="@import" end=";\|$" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
|
syn region sassInclude start="@import" end=";\|$" contains=cssComment,cssURL,cssUnicodeEscape,cssMediaType
|
||||||
|
syn region sassControlLine matchgroup=sassControl start="@\%(if\|while\|for\)\>" end="$" contains=sassFor,@sassCssAttributes,sassConstant
|
||||||
|
syn keyword sassFor from to through contained
|
||||||
|
|
||||||
syn keyword sassTodo FIXME NOTE TODO OPTIMIZE XXX contained
|
syn keyword sassTodo FIXME NOTE TODO OPTIMIZE XXX contained
|
||||||
syn region sassComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!" contains=sassTodo
|
syn region sassComment start="^\z(\s*\)//" end="^\%(\z1 \)\@!" contains=sassTodo
|
||||||
@@ -44,6 +46,8 @@ hi def link sassMixing PreProc
|
|||||||
hi def link sassMixin PreProc
|
hi def link sassMixin PreProc
|
||||||
hi def link sassTodo Todo
|
hi def link sassTodo Todo
|
||||||
hi def link sassInclude Include
|
hi def link sassInclude Include
|
||||||
|
hi def link sassControl PreProc
|
||||||
|
hi def link sassFor PreProc
|
||||||
hi def link sassEscape Special
|
hi def link sassEscape Special
|
||||||
hi def link sassIdChar Special
|
hi def link sassIdChar Special
|
||||||
hi def link sassClassChar Special
|
hi def link sassClassChar Special
|
||||||
|
|||||||
Reference in new issue
Block a user