summaryrefslogtreecommitdiffstats
path: root/autoload/vimtex/syntax/p/dot2texi.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/vimtex/syntax/p/dot2texi.vim')
-rw-r--r--autoload/vimtex/syntax/p/dot2texi.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/autoload/vimtex/syntax/p/dot2texi.vim b/autoload/vimtex/syntax/p/dot2texi.vim
new file mode 100644
index 00000000..881c2397
--- /dev/null
+++ b/autoload/vimtex/syntax/p/dot2texi.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#dot2texi#load() abort " {{{1
+ if has_key(b:vimtex_syntax, 'dot2texi') | return | endif
+ let b:vimtex_syntax.dot2texi = 1
+
+ call vimtex#syntax#misc#include('dot')
+ call vimtex#syntax#misc#add_to_section_clusters('texZoneDot')
+ syntax region texZoneDot
+ \ start="\\begin{dot2tex}"rs=s
+ \ end="\\end{dot2tex}"re=e
+ \ keepend
+ \ transparent
+ \ contains=texBeginEnd,@vimtex_nested_dot
+endfunction
+
+" }}}1
+
+endif