mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix(lsp): syntax improvements for lsp_markdown
This commit is contained in:
parent
510ed996d2
commit
08f81f0f29
@ -10,8 +10,14 @@ execute 'source' expand('<sfile>:p:h') .. '/markdown.vim'
|
||||
|
||||
syn cluster mkdNonListItem add=mkdEscape,mkdNbsp
|
||||
|
||||
syntax region mkdEscape matchgroup=mkdEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/.\zs/ keepend contains=mkdEscapeCh oneline concealends
|
||||
syntax match mkdEscapeCh /./ contained
|
||||
syn clear markdownEscape
|
||||
syntax region markdownEscape matchgroup=markdownEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/./ containedin=ALL keepend oneline concealends
|
||||
|
||||
" conceal html entities
|
||||
syntax match mkdNbsp / / conceal cchar=
|
||||
syntax match mkdLt /</ conceal cchar=<
|
||||
syntax match mkdGt />/ conceal cchar=>
|
||||
syntax match mkdAmp /&/ conceal cchar=&
|
||||
syntax match mkdQuot /"/ conceal cchar="
|
||||
|
||||
hi def link mkdEscape special
|
||||
|
Loading…
Reference in New Issue
Block a user