summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vim/syntax/mako.vim12
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")