mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
lsp: update lsp_markdown syntax to not clash with built-in markdown syntax
This commit is contained in:
parent
054eb31dc7
commit
2f64cda49e
@ -7,9 +7,8 @@
|
||||
runtime! syntax/markdown.vim
|
||||
|
||||
syn cluster mkdNonListItem add=mkdEscape,mkdNbsp
|
||||
syntax region mkdNonListItemBlock start=/\(\%^\(\s*\([-*+]\|\d\+\.\)\s\+\)\@!\|\n\(\_^\_$\|\s\{4,}[^]\|\t+[^\t]\)\@!\)/ end=/^\(\s*\([-*+]\|\d\+\.\)\s\+\)\@=/ contains=@mkdNonListItem
|
||||
|
||||
syntax region mkdEscape matchgroup=mkdEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/.\zs/ keepend contains=mkdEscapeCh contained oneline concealends
|
||||
syntax region mkdEscape matchgroup=mkdEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/.\zs/ keepend contains=mkdEscapeCh oneline concealends
|
||||
syntax match mkdEscapeCh /./ contained
|
||||
syntax match mkdNbsp / / conceal cchar=
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user