Merge pull request #369 from frankier/add-lualatex-highlighting

Add lualatex highlighting
This commit is contained in:
Karl Yngve Lervåg 2016-02-16 20:34:27 +01:00
commit 0261ba1f22

View File

@ -112,6 +112,24 @@ syntax region texZone
\ contains=texBeginEnd,@DOT
let b:current_syntax = 'tex'
" }}}1
" {{{1 Nested syntax highlighting for lualatex
unlet b:current_syntax
syntax include @LUA syntax/lua.vim
syntax region texZone
\ start='\\begin{luacode\*\?}'rs=s
\ end='\\end{luacode\*\?}'re=e
\ keepend
\ transparent
\ contains=texBeginEnd,@LUA
syntax region texZone
\ start='\\\(directlua\|luadirect\){'rs=s
\ end='}'re=e
\ keepend
\ transparent
\ contains=texBeginEnd,@LUA
let b:current_syntax = 'tex'
" }}}1
" {{{1 Nested syntax highlighting for minted