Skip to content
Myr

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

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

it has any impact depends on how the user has folding set up in vim. I confirmed that with the change, a folding setup that uses these variables works, whereas without the change, the same setup doesn't work. Change only effects a file that has to be manually copied to the user's ~/.vim/syntax folder, so it won't impact jinja execution in any way.

authored by Terry N. Brown · committed by Terry N. Brown · parent 64b4458 · 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