Use correct gnuplot environment for nested syntax (#514) (#515)

This commit is contained in:
matthewjohnrussell 2016-08-07 21:16:14 +01:00 committed by Karl Yngve Lervåg
parent 774ca72270
commit 9f49cf150a
2 changed files with 4 additions and 4 deletions

View File

@ -194,8 +194,8 @@ let b:current_syntax = 'tex'
unlet b:current_syntax unlet b:current_syntax
syntax include @GNUPLOT syntax/gnuplot.vim syntax include @GNUPLOT syntax/gnuplot.vim
syntax region texZone syntax region texZone
\ start='\\begin{gnuplottex}\(\_s*\[\_[\]]\{-}\]\)\?'rs=s \ start='\\begin{gnuplot}\(\_s*\[\_[\]]\{-}\]\)\?'rs=s
\ end='\\end{gnuplottex}'re=e \ end='\\end{gnuplot}'re=e
\ keepend \ keepend
\ transparent \ transparent
\ contains=texBeginEnd,texBeginEndModifier,@GNUPLOT \ contains=texBeginEnd,texBeginEndModifier,@GNUPLOT

View File

@ -27,9 +27,9 @@ testing
} }
\end{dot2tex} \end{dot2tex}
\begin{gnuplottex}[terminal=..., terminaloptions=...] \begin{gnuplot}[terminal=..., terminaloptions=...]
plot file using 1:2 with lines plot file using 1:2 with lines
\end{gnuplottex} \end{gnuplot}
\begin{minted}{python} \begin{minted}{python}
def function(arg): def function(arg):