diff options
author | Will Woods <wwoods@redhat.com> | 2012-02-08 12:18:27 -0500 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2012-02-08 12:18:27 -0500 |
commit | e03a20b9e68c9059ed84842931014390e0fe5d13 (patch) | |
tree | 65e2d425d89d3b41a684802e12db72c321105a5b | |
parent | 0b33fcf8897818e010e6a744d6bf442ac6672db4 (diff) | |
download | vim-scripts-e03a20b9e68c9059ed84842931014390e0fe5d13.tar.gz vim-scripts-e03a20b9e68c9059ed84842931014390e0fe5d13.tar.xz vim-scripts-e03a20b9e68c9059ed84842931014390e0fe5d13.zip |
ltmpl: color </tag>, -command, and filters properly
-rw-r--r-- | syntax/ltmpl.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/syntax/ltmpl.vim b/syntax/ltmpl.vim index edccd5e..83da0a0 100644 --- a/syntax/ltmpl.vim +++ b/syntax/ltmpl.vim @@ -20,7 +20,7 @@ unlet b:current_syntax syn match makoError contained /\S.*/ syn match makoComment /^\s*##.*/ -syn region makoTag matchgroup=makoSpecial start=/<%[A-Za-z0-9_.:]\+/ end=/\/\=>/ contains=makoArgs,makoString,makoVar +syn region makoTag matchgroup=makoSpecial start=/<\/\=%[A-Za-z0-9_.:]\+/ end=/\/\=>/ contains=makoArgs,makoString,makoVar syn keyword makoArgs contained args name filter file import cached buffered cache_type syn region makoComment matchgroup=makoSpecial start='<%doc>' end='</%doc>' syn region makoText matchgroup=makoSpecial start='<%text>' end='</%text>' @@ -46,8 +46,11 @@ syn cluster loraxArgClust contains=makoVar,loraxInt,loraxQuote,loraxAlt,loraxC syn region loraxArgs contained start=// end=/$/ contains=@loraxArgClust syn region loraxArgsGlob contained start=// end=/$/ contains=@loraxArgClust,loraxGlobSyms +" match a '-' prefix on a command. (this is kind of a weak rule) +syn match loraxCmdSyms /^\s*-/ + " commands that don't take globs -syn keyword loraxKey copy copyif move moveif hardlink symlink nextgroup=loraxArgs +syn keyword loraxKey copy move hardlink symlink nextgroup=loraxArgs syn keyword loraxKey mkdir append chmod installkernel installinitrd treeinfo nextgroup=loraxArgs " commands that take globs @@ -70,6 +73,7 @@ syn match loraxLog contained /\S\+/ contains=makoVar,loraxQuote,loraxInt skipw syn keyword loraxKey run_pkg_transaction nextgroup=loraxError + " define colors hi def link makoComment Comment hi def link makoText String @@ -77,13 +81,15 @@ hi def link makoSpecial Special hi def link makoVar PreProc hi def link makoError Error hi def link makoString String -hi def link makoFilterNames Constant +hi def link makoFilter Constant +hi def link makoFilterNames Statement hi def link makoArgs Type hi def link loraxKey Statement hi def link loraxAltComma Special hi def link loraxContinue Special hi def link loraxGlobSyms Special +hi def link loraxCmdSyms Special hi def link loraxQuote String hi def link loraxError Error hi def link loraxInt Constant |