Skip to content
Myr

Merge pull request #1122 from blueyed/vim-indent

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

ext/Vim/jinja.vim: minor fixes

authored by David Lord · committed by GitHub · parents 9b125f4, d31e66c · Browse files · 1 file+8 added−8 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+8 added−8 removed

  • other:+8 added−8 removed

1 file+8 added−8 removed

modified:ext/Vim/jinja.vim+8 added-8 removed
12 unmodified lines
13" 2008 May 9: Added support for Jinja 2 changes (new keyword rules)1415" .vimrc variable to disable html highlighting16if !exists('g:jinja_syntax_html')17 let g:jinja_syntax_html=117 let g:jinja_syntax_html=118endif1920" 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 finish27endif26 finish27 endif28 let main_syntax = 'jinja'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