mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-10 20:43:52 -05:00
26 lines
724 B
VimL
26 lines
724 B
VimL
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
|