Skip to content
Myr

ext/Vim/jinja.vim: fix issues reported by vint

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

authored by Daniel Hahler · committed by Daniel Hahler · parent 88023b8 · Browse files · 1 file+5 added−5 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+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:ext/Vim/jinja.vim+5 added-5 removed
18 unmodified lines
1920" For version 5.x: Clear all syntax items21" For version 6.x: Quit when a syntax file was already loaded22if !exists("main_syntax")23 if version < 60023 if v:version < 60024 syntax clear25 elseif exists("b:current_syntax")26 finish27 endif
1 unmodified line
29endif3031" Pull in the HTML syntax.32if g:jinja_syntax_html33 if version < 60033 if v:version < 60034 so <sfile>:p:h/html.vim35 else36 runtime! syntax/html.vim37 unlet b:current_syntax
59 unmodified lines
9798" Define the default highlighting.99" For version 5.7 and earlier: only when not done already100" For version 5.8 and later: only when an item doesn't have highlighting yet101if version >= 508 || !exists("did_jinja_syn_inits")102 if version < 508101if v:version >= 508 || !exists("did_jinja_syn_inits")102 if v:version < 508103 let did_jinja_syn_inits = 1104 command -nargs=+ HiLink hi link <args>105 else106 command -nargs=+ HiLink hi def link <args>
25 unmodified lines
132endif133134let b:current_syntax = "jinja"135136if main_syntax == 'jinja'136if main_syntax ==# 'jinja'137 unlet main_syntax138endif