diff options
author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-03-10 14:15:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 14:15:24 -0800 |
commit | 4ed860a64cf6db8dcf33d16ce448243bf072006d (patch) | |
tree | cdb9c12bcfc2640cdfce0a887cee757c0feb7171 /runtime/syntax | |
parent | d1074e0077024d1581a77e3bf09e80a657047847 (diff) | |
parent | d49177afd9806f651c0177f9cc68c5a22dba2938 (diff) | |
download | rneovim-4ed860a64cf6db8dcf33d16ce448243bf072006d.tar.gz rneovim-4ed860a64cf6db8dcf33d16ce448243bf072006d.tar.bz2 rneovim-4ed860a64cf6db8dcf33d16ce448243bf072006d.zip |
Merge pull request #14073 from mjlbach/feature/syntax_highlight_rule
lsp: add custom syntax rule for floating window
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/lsp_markdown.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/syntax/lsp_markdown.vim b/runtime/syntax/lsp_markdown.vim new file mode 100644 index 0000000000..23658a9db6 --- /dev/null +++ b/runtime/syntax/lsp_markdown.vim @@ -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 |