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