diff options
Diffstat (limited to 'autoload/vimtex/syntax/p/gnuplottex.vim')
-rw-r--r-- | autoload/vimtex/syntax/p/gnuplottex.vim | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/autoload/vimtex/syntax/p/gnuplottex.vim b/autoload/vimtex/syntax/p/gnuplottex.vim new file mode 100644 index 00000000..7ecaee54 --- /dev/null +++ b/autoload/vimtex/syntax/p/gnuplottex.vim @@ -0,0 +1,25 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + +" vimtex - LaTeX plugin for Vim +" +" Maintainer: Karl Yngve LervÄg +" Email: karl.yngve@gmail.com +" + +function! vimtex#syntax#p#gnuplottex#load() abort " {{{1 + if has_key(b:vimtex_syntax, 'gnuplottex') | return | endif + let b:vimtex_syntax.gnuplottex = 1 + + call vimtex#syntax#misc#include('gnuplot') + call vimtex#syntax#misc#add_to_section_clusters('texZoneGnuplot') + syntax region texZoneGnuplot + \ start='\\begin{gnuplot}\(\_s*\[\_[\]]\{-}\]\)\?'rs=s + \ end='\\end{gnuplot}'re=e + \ keepend + \ transparent + \ contains=texBeginEnd,texBeginEndModifier,@vimtex_nested_gnuplot +endfunction + +" }}}1 + +endif |