summaryrefslogtreecommitdiffstats
path: root/autoload/vimtex/syntax/p/moreverb.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/vimtex/syntax/p/moreverb.vim')
-rw-r--r--autoload/vimtex/syntax/p/moreverb.vim26
1 files changed, 26 insertions, 0 deletions
diff --git a/autoload/vimtex/syntax/p/moreverb.vim b/autoload/vimtex/syntax/p/moreverb.vim
new file mode 100644
index 00000000..f6bb8f8c
--- /dev/null
+++ b/autoload/vimtex/syntax/p/moreverb.vim
@@ -0,0 +1,26 @@
+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#moreverb#load() abort " {{{1
+ if has_key(b:vimtex_syntax, 'moreverb') | return | endif
+ let b:vimtex_syntax.moreverb = 1
+
+ if exists('g:tex_verbspell')
+ syntax region texZone start="\\begin{verbatimtab}" end="\\end{verbatimtab}\|%stopzone\>" contains=@Spell
+ syntax region texZone start="\\begin{verbatimwrite}" end="\\end{verbatimwrite}\|%stopzone\>" contains=@Spell
+ syntax region texZone start="\\begin{boxedverbatim}" end="\\end{boxedverbatim}\|%stopzone\>" contains=@Spell
+ else
+ syntax region texZone start="\\begin{verbatimtab}" end="\\end{verbatimtab}\|%stopzone\>"
+ syntax region texZone start="\\begin{verbatimwrite}" end="\\end{verbatimwrite}\|%stopzone\>"
+ syntax region texZone start="\\begin{boxedverbatim}" end="\\end{boxedverbatim}\|%stopzone\>"
+ endif
+endfunction
+
+" }}}1
+
+endif