Merge pull request #369 from frankier/add-lualatex-highlighting
Add lualatex highlighting
This commit is contained in:
commit
0261ba1f22
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user