File: markdown.vim

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if exists('b:_loaded_markdown_vimtex')
  finish
endif
let b:_loaded_markdown_vimtex = 1

if !exists('b:current_syntax')
  runtime! syntax/markdown.vim
endif

unlet! b:current_syntax
syntax include @tex syntax/tex.vim
let b:current_syntax = 'markdown'

syntax region mkdMath start="\\\@<!\$" end="\$" skip="\\\$" contains=@tex keepend
syntax region mkdMath start="\\\@<!\$\$" end="\$\$" skip="\\\$" contains=@tex keepend
syntax region mkdMath start="\\\@<!\\(" end="\\\@<!\\)" contains=@tex keepend