2019-02-09 22:15:36 +00:00
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2019-02-09 22:32:17 +00:00
|
|
|
" changing order of following 4 lines breaks highlighting TODO - why?
|
2019-02-09 22:15:36 +00:00
|
|
|
syntax include @octoberPHP syntax/php.vim
|
|
|
|
unlet! b:current_syntax
|
|
|
|
syntax include @octoberConfig syntax/dosini.vim
|
2019-02-09 22:32:17 +00:00
|
|
|
runtime! syntax/jinja.vim
|
2019-02-09 22:15:36 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-02-09 22:32:17 +00:00
|
|
|
" FIXME - why these no work!
|
2019-02-09 22:15:36 +00:00
|
|
|
" syntax match octobercmsSectionDelimiter "^==$"
|
|
|
|
" highlight link octobercmsSectionDelimiter Comment
|
|
|
|
|
|
|
|
let b:current_syntax = "octobercms"
|