update: fixed broken highlighting due to order of syntax loading commands
This commit is contained in:
parent
5605bba062
commit
4279330f95
|
@ -2,17 +2,16 @@ if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime! syntax/jinja.vim
|
" changing order of following 4 lines breaks highlighting TODO - why?
|
||||||
|
|
||||||
syntax include @octoberPHP syntax/php.vim
|
syntax include @octoberPHP syntax/php.vim
|
||||||
|
|
||||||
unlet! b:current_syntax
|
unlet! b:current_syntax
|
||||||
|
|
||||||
syntax include @octoberConfig syntax/dosini.vim
|
syntax include @octoberConfig syntax/dosini.vim
|
||||||
|
runtime! syntax/jinja.vim
|
||||||
|
|
||||||
syntax region octoberConfig start=@\%^\([a-zA-z]\+[a-zA-Z0-9]\+\s*=\s*\("\|'\)\)\|\[\s*[a-zA-Z0-9]\+\s*\]@ end=+^==$+me=e-2 contains=@octoberConfig
|
syntax region octoberConfig start=@\%^\([a-zA-z]\+[a-zA-Z0-9]\+\s*=\s*\("\|'\)\)\|\[\s*[a-zA-Z0-9]\+\s*\]@ end=+^==$+me=e-2 contains=@octoberConfig
|
||||||
syntax region octoberPHP start=+^==$+ms=s+2 end=+^==$+me=e-2 contains=@octoberPHP
|
syntax region octoberPHP start=+^==$+ms=s+2 end=+^==$+me=e-2 contains=@octoberPHP
|
||||||
|
|
||||||
|
" FIXME - why these no work!
|
||||||
" syntax match octobercmsSectionDelimiter "^==$"
|
" syntax match octobercmsSectionDelimiter "^==$"
|
||||||
" highlight link octobercmsSectionDelimiter Comment
|
" highlight link octobercmsSectionDelimiter Comment
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue