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

View File

@ -104,6 +104,18 @@ const double pi = 3.1415926535
\citeyearpar{} \citeyearpar{}
\bibentry{} \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} \end{document}
% vim: fdl=9 % vim: fdl=9