aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/lsp_markdown.vim
blob: 90d31856737f9c0f989067783bb4b3fb1f376ecc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
" Vim syntax file
" Language:	lsp_markdown
" Maintainer:	Michael Lingelbach <m.j.lbach@gmail.com
" URL:		http://neovim.io
" Remark:	Uses markdown syntax file

" always source the system included markdown instead of any other installed
" markdown.vim syntax files
execute 'source' expand('<sfile>:p:h') .. '/markdown.vim'

syn cluster mkdNonListItem add=mkdEscape,mkdNbsp

syn clear markdownEscape
syntax region markdownEscape matchgroup=markdownEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/./ containedin=ALL keepend oneline concealends

" conceal html entities
syntax match mkdNbsp /&nbsp;/ conceal cchar= 
syntax match mkdLt /&lt;/  conceal cchar=<
syntax match mkdGt /&gt;/  conceal cchar=>
syntax match mkdAmp /&amp;/  conceal cchar=&
syntax match mkdQuot /&quot;/  conceal cchar="

hi def link mkdEscape special