mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
lsp: add custom syntax rules for lsp floating window
This commit is contained in:
16
runtime/syntax/lsp_markdown.vim
Normal file
16
runtime/syntax/lsp_markdown.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
" Vim syntax file
|
||||
" Language: lsp_markdown
|
||||
" Maintainer: Michael Lingelbach <m.j.lbach@gmail.com
|
||||
" URL: http://neovim.io
|
||||
" Remark: Uses markdown syntax file
|
||||
|
||||
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 match mkdEscapeCh /./ contained
|
||||
syntax match mkdNbsp / / conceal cchar=
|
||||
|
||||
hi def link mkdEscape special
|
||||
Reference in New Issue
Block a user