Fixed #660: Error in luacode nested syntax

This commit is contained in:
Karl Yngve Lervåg 2017-01-14 22:14:26 +01:00
parent ce316881ef
commit b344cfa968
2 changed files with 18 additions and 6 deletions

View File

@ -175,12 +175,12 @@ syntax region texZone
\ keepend
\ transparent
\ contains=texBeginEnd,@LUA
syntax region texZone
\ start='\\\(directlua\|luadirect\){'rs=s
\ end='}'re=e
\ keepend
\ transparent
\ contains=texBeginEnd,@LUA
syntax match texStatement '\\\(directlua\|luadirect\)' nextgroup=texZoneLua
syntax region texZoneLua matchgroup=Delimiter
\ start='{'
\ end='}'
\ contained
\ contains=@LUA
let b:current_syntax = 'tex'
" }}}1

View File

@ -104,6 +104,18 @@ const double pi = 3.1415926535
\citeyearpar{}
\bibentry{}
\directlua{
if pdf.getminorversion() \string~= 7 then
print "pfd version 1.7"
end
}
\begin{luacode}
if pdf.getminorversion() \string~= 7 then
print "pfd version 1.7"
end
\end{luacode}
\end{document}
% vim: fdl=9