Skip to content
Myr

Merge pull request #990 from tbnorth/vim_syntax_tweak

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This is the correct thing to do, vim-wise, although whether

authored by David Lord · committed by GitHub · parents 52c45df, b02c3ee · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:ext/Vim/jinja.vim+3 added
80 unmodified lines
81syn region jinjaRaw matchgroup=jinjaRawDelim start="{%\s*raw\s*%}" end="{%\s*endraw\s*%}" containedin=ALLBUT,jinjaTagBlock,jinjaVarBlock,jinjaString,jinjaComment8283" Jinja comments84syn region jinjaComment matchgroup=jinjaCommentDelim start="{#" end="#}" containedin=ALLBUT,jinjaTagBlock,jinjaVarBlock,jinjaString,jinjaComment85" help support folding for some setups86setlocal commentstring={#%s#}87setlocal comments=s:{#,e:#}8889" Block start keywords. A bit tricker. We only highlight at the start of a90" tag block and only if the name is not followed by a comma or equals sign91" which usually means that we have to deal with an assignment.
47 unmodified lines