Mercurial > ec-dotfiles
comparison vendor/vim-syntax/slim.vim @ 589:7fbadf8bd22e
Update vendor
Change whatever available from official vim
author | nanaya <me@myconan.net> |
---|---|
date | Thu, 07 Jul 2016 15:59:06 +0900 |
parents | 351bd965bc1f |
children | c548e83e4c57 |
comparison
equal
deleted
inserted
replaced
588:152c020d7d8e | 589:7fbadf8bd22e |
---|---|
64 | 64 |
65 syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{" end="}" contains=@hamlRubyTop containedin=javascriptStringS,javascriptStringD,slimWrappedAttrs | 65 syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{" end="}" contains=@hamlRubyTop containedin=javascriptStringS,javascriptStringD,slimWrappedAttrs |
66 syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{{" end="}}" contains=@hamlRubyTop containedin=javascriptStringS,javascriptStringD,slimWrappedAttrs | 66 syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{{" end="}}" contains=@hamlRubyTop containedin=javascriptStringS,javascriptStringD,slimWrappedAttrs |
67 syn match slimInterpolationEscape "\\\@<!\%(\\\\\)*\\\%(\\\ze#{\|#\ze{\)" | 67 syn match slimInterpolationEscape "\\\@<!\%(\\\\\)*\\\%(\\\ze#{\|#\ze{\)" |
68 | 68 |
69 syn region slimPlainFilter matchgroup=slimFilter start="^\z(\s*\)\%(rdoc\|textile\|markdown\|wiki\):\s*$" end="^\%(\z1 \| *$\)\@!" | |
70 syn region slimJavascriptFilter matchgroup=slimFilter start="^\z(\s*\)javascript:\s*$" end="^\%(\z1 \| *$\)\@!" contains=@htmlJavaScript,slimInterpolation keepend | |
71 syn region slimCoffeeFilter matchgroup=slimFilter start="^\z(\s*\)coffee:\s*$" end="^\%(\z1 \| *$\)\@!" contains=@coffeeAll,slimInterpolation keepend | |
72 syn region slimCSSFilter matchgroup=slimFilter start="^\z(\s*\)css:\s*$" end="^\%(\z1 \| *$\)\@!" contains=@htmlCss,slimInterpolation keepend | |
73 syn region slimSassFilter matchgroup=slimFilter start="^\z(\s*\)sass:\s*$" end="^\%(\z1 \| *$\)\@!" contains=@hamlSassTop | |
74 | |
69 syn region slimRuby matchgroup=slimRubyOutputChar start="\s*[=]\==[']\=" skip="\%\(,\s*\|\\\)$" end="$" contained contains=@slimRubyTop keepend | 75 syn region slimRuby matchgroup=slimRubyOutputChar start="\s*[=]\==[']\=" skip="\%\(,\s*\|\\\)$" end="$" contained contains=@slimRubyTop keepend |
70 syn region slimRuby matchgroup=slimRubyChar start="\s*-" skip="\%\(,\s*\|\\\)$" end="$" contained contains=@slimRubyTop keepend | 76 syn region slimRuby matchgroup=slimRubyChar start="\s*-" skip="\%\(,\s*\|\\\)$" end="$" contained contains=@slimRubyTop keepend |
71 | 77 |
72 syn match slimComment /^\(\s*\)[/].*\(\n\1\s.*\)*/ contains=slimTodo | 78 syn match slimComment /^\(\s*\)[/].*\(\n\1\s.*\)*/ contains=slimTodo |
73 syn match slimText /^\(\s*\)[`|'].*\(\n\1\s.*\)*/ contains=slimInterpolation | 79 syn match slimText /^\(\s*\)[`|'].*\(\n\1\s.*\)*/ contains=slimInterpolation |
96 hi def link slimText String | 102 hi def link slimText String |
97 hi def link slimTodo Todo | 103 hi def link slimTodo Todo |
98 hi def link slimWrappedAttrValueDelimiter Delimiter | 104 hi def link slimWrappedAttrValueDelimiter Delimiter |
99 hi def link slimWrappedAttrsDelimiter Delimiter | 105 hi def link slimWrappedAttrsDelimiter Delimiter |
100 hi def link slimInlineTagChar Delimiter | 106 hi def link slimInlineTagChar Delimiter |
107 hi def link slimFilter PreProc | |
101 | 108 |
102 let b:current_syntax = "slim" | 109 let b:current_syntax = "slim" |