Fixed #660: Error in luacode nested syntax
This commit is contained in:
parent
ce316881ef
commit
b344cfa968
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user