Skip to content

Commit

Permalink
Merge pull request pallets#33 from razamatan/master
Browse files Browse the repository at this point in the history
jinja.vim subsumes htmljinja.vim
  • Loading branch information
mitsuhiko committed May 24, 2011
2 parents 086174c + ef30ab5 commit 18286b6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 30 deletions.
27 changes: 0 additions & 27 deletions ext/Vim/htmljinja.vim

This file was deleted.

28 changes: 25 additions & 3 deletions ext/Vim/jinja.vim
Expand Up @@ -12,13 +12,31 @@
"
" 2008 May 9: Added support for Jinja2 changes (new keyword rules)

" .vimrc variable to disable html highlighting
if !exists('g:jinja_syntax_html')
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 version < 600
syntax clear
elseif exists("b:current_syntax")
if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'jinja'
endif

" Pull in the HTML syntax.
if g:jinja_syntax_html
if version < 600
so <sfile>:p:h/html.vim
else
runtime! syntax/html.vim
unlet b:current_syntax
endif
endif

syntax case match

Expand Down Expand Up @@ -111,3 +129,7 @@ if version >= 508 || !exists("did_jinja_syn_inits")
endif

let b:current_syntax = "jinja"

if main_syntax == 'jinja'
unlet main_syntax
endif

0 comments on commit 18286b6

Please sign in to comment.