diff options
author | David Lord <davidism@gmail.com> | 2020-01-06 05:45:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 05:45:31 -0800 |
commit | 715f357abc1d3966f1059f59d7a0ae5a7b6b5905 (patch) | |
tree | 54d4a088f0a949c48d3ad182ce40ff57991bb986 /ext/Vim/jinja.vim | |
parent | 9b125f47d1340817bbcec143edd92155d4d1da7e (diff) | |
parent | d31e66c6ba5a9b4e8b610608f1a9bc114c3ec23c (diff) | |
download | jinja2-715f357abc1d3966f1059f59d7a0ae5a7b6b5905.tar.gz |
Merge pull request #1122 from blueyed/vim-indent
ext/Vim/jinja.vim: minor fixes
Diffstat (limited to 'ext/Vim/jinja.vim')
-rw-r--r-- | ext/Vim/jinja.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/Vim/jinja.vim b/ext/Vim/jinja.vim index 5bfdf16..e2a5bbf 100644 --- a/ext/Vim/jinja.vim +++ b/ext/Vim/jinja.vim @@ -14,23 +14,23 @@ " .vimrc variable to disable html highlighting if !exists('g:jinja_syntax_html') - let g:jinja_syntax_html=1 + let g:jinja_syntax_html=1 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 -endif + finish + endif let main_syntax = 'jinja' 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 @@ -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 @@ -133,6 +133,6 @@ endif let b:current_syntax = "jinja" -if main_syntax == 'jinja' +if main_syntax ==# 'jinja' unlet main_syntax endif |