diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 00:11:50 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-07 00:20:18 +0200 |
commit | 70b0f6b8c99616030401ee32b1093b48509cac40 (patch) | |
tree | 2cacc57e85cdfd7e7c2356f244772f4b1324500d | |
parent | fe2be21d31bb9ed1cc40272f3c6809945f8e5fb7 (diff) | |
download | dotfiles-70b0f6b8c99616030401ee32b1093b48509cac40.tar.gz dotfiles-70b0f6b8c99616030401ee32b1093b48509cac40.tar.bz2 dotfiles-70b0f6b8c99616030401ee32b1093b48509cac40.zip |
Add support for the <%ns:function ...></%ns:function> syntax in mako.
Diffstat (limited to '')
-rw-r--r-- | .vim/syntax/mako.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.vim/syntax/mako.vim b/.vim/syntax/mako.vim index afc31c8..3843666 100644 --- a/.vim/syntax/mako.vim +++ b/.vim/syntax/mako.vim @@ -34,12 +34,12 @@ syn include @pythonTop syntax/python.vim syn keyword makoEnd contained endfor endwhile endif endtry enddef " Block rules -syn region makoLine matchgroup=makoDelim start=#^\s*%# end=#$# keepend contains=@pythonTop,makoEnd -syn region makoBlock matchgroup=makoDelim start=#<%!\?# end=#%># keepend contains=@pythonTop,makoEnd +syn region makoLine matchgroup=makoDelim start="^\s*%" end="$" keepend contains=@pythonTop,makoEnd +syn region makoBlock matchgroup=makoDelim start="<%!\?" end="%>" keepend contains=@pythonTop,makoEnd " Variables syn region makoNested start="{" end="}" transparent display contained contains=makoNested,@pythonTop -syn region makoVariable matchgroup=makoDelim start=#\${# end=#}# contains=makoNested,@pythonTop +syn region makoVariable matchgroup=makoDelim start="\${" end="}" contains=makoNested,@pythonTop " Comments syn region makoComment start="^\s*##" end="$" @@ -54,11 +54,11 @@ syn region makoAttributeValue containedin=makoTag contained start=/"/ skip=/\\"/ syn region makoAttributeValue containedin=MakoTag contained start=/'/ skip=/\\'/ end=/'/ " Tags -syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\)\>" end="/\?>" -syn match makoDelim "</%\(def\|call\|namespace\)>" +syn region makoTag matchgroup=makoDelim start="<%\(def\|call\|page\|include\|namespace\|inherit\|\([a-zA-Z_]\+:[a-zA-Z_]\+\)\)\>" end="/\?>" +syn match makoDelim "</%\(def\|call\|namespace\|\([a-zA-Z_]\+:[a-zA-Z_]\+\)\)>" " Newline Escapes -syn match makoEscape /\\$/ +syn match makoEscape "\\$" " Default highlighting links if version >= 508 || !exists("did_mako_syn_inits") |