neovim/runtime/syntax/lsp_markdown.vim

20 lines
738 B
VimL
Raw Normal View History

" 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,mkdLine
syntax region mkdEscape matchgroup=mkdEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/.\zs/ keepend contains=mkdEscapeCh oneline concealends
syntax match mkdEscapeCh /./ contained
syntax match mkdNbsp /&nbsp;/ conceal cchar=
syntax match mkdLine /---/ conceal cchar=
syntax match markdownH2 "" contained
hi def link mkdEscape special