mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #14907 from folke/lsp_markdown
fix(lsp): syntax improvements for lsp_markdown
This commit is contained in:
commit
bbd13aadd7
@ -10,8 +10,14 @@ execute 'source' expand('<sfile>:p:h') .. '/markdown.vim'
|
|||||||
|
|
||||||
syn cluster mkdNonListItem add=mkdEscape,mkdNbsp
|
syn cluster mkdNonListItem add=mkdEscape,mkdNbsp
|
||||||
|
|
||||||
syntax region mkdEscape matchgroup=mkdEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/.\zs/ keepend contains=mkdEscapeCh oneline concealends
|
syn clear markdownEscape
|
||||||
syntax match mkdEscapeCh /./ contained
|
syntax region markdownEscape matchgroup=markdownEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/./ containedin=ALL keepend oneline concealends
|
||||||
|
|
||||||
|
" conceal html entities
|
||||||
syntax match mkdNbsp / / conceal cchar=
|
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
|
hi def link mkdEscape special
|
||||||
|
Loading…
Reference in New Issue
Block a user