Skip to content

Commit

Permalink
ext/Vim/jinja.vim: fix issues reported by vint
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jan 6, 2020
1 parent 88023b8 commit d31e66c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/Vim/jinja.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
if !exists("main_syntax")
if version < 600
if v:version < 600
syntax clear
elseif exists("b:current_syntax")
finish
Expand All @@ -30,7 +30,7 @@ endif

" Pull in the HTML syntax.
if g:jinja_syntax_html
if version < 600
if v:version < 600
so <sfile>:p:h/html.vim
else
runtime! syntax/html.vim
Expand Down Expand Up @@ -98,8 +98,8 @@ syn match jinjaStatement containedin=jinjaTagBlock contained /\<with\(out\)\?\s\
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_jinja_syn_inits")
if version < 508
if v:version >= 508 || !exists("did_jinja_syn_inits")
if v:version < 508
let did_jinja_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
Expand Down Expand Up @@ -133,6 +133,6 @@ endif

let b:current_syntax = "jinja"

if main_syntax == 'jinja'
if main_syntax ==# 'jinja'
unlet main_syntax
endif

0 comments on commit d31e66c

Please sign in to comment.