
" LuaTeX Syntax Highlighting {{{
if exists("b:current_syntax")
    unlet b:current_syntax
endif

syn include @LUA syntax/lua.vim

syn region LuaTeXSnippet matchgroup=LuaTeXIdentifier
    \ start='\\begin{\z(luacode\|luacode*\)}'
    \ end='\\end{\z1}'
    \ contains=@LUA

syn region LuaTeXSnippet matchgroup=LuaTeXIdentifier
    \ start='\\\(directlua\|luadirect\){'
    \ end='}'
    \ contains=@LUA

highlight link LuaTeXSnippet SpecialComment
" }}}


" LuaTeX Syntax Highlighting {{{
if exists("b:current_syntax")
    unlet b:current_syntax
endif

syn include @LUA syntax/lua.vim

syn region LuaTeXSnippet matchgroup=LuaTeXIdentifier
    \ start='\\begin{\z(luacode\|luacode*\)}'
    \ end='\\end{\z1}'
    \ contains=@LUA

syn region LuaTeXSnippet matchgroup=LuaTeXIdentifier
    \ start='\\\(directlua\|luadirect\){'
    \ end='}'
    \ contains=@LUA

highlight link LuaTeXIdentifier SpecialComment
" }}}

Fix the highlighting of matchgroup.
Fix the highlighting of matchgroup.

hershsingh/dotfiles,hershsingh/dotfiles