diff options
author | matveyt <35012635+matveyt@users.noreply.github.com> | 2021-12-18 19:14:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 09:14:42 -0700 |
commit | 734fba0d88cc9ff3b5fa24328e5ba7852e0e3211 (patch) | |
tree | 809ce43f8961909abd9bd126a8404624face1993 /runtime/syntax | |
parent | 36758ba9a78ecf01ab8f654be08051015932983a (diff) | |
download | rneovim-734fba0d88cc9ff3b5fa24328e5ba7852e0e3211.tar.gz rneovim-734fba0d88cc9ff3b5fa24328e5ba7852e0e3211.tar.bz2 rneovim-734fba0d88cc9ff3b5fa24328e5ba7852e0e3211.zip |
feat(runtime): new checkhealth filetype (#16660)
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/checkhealth.vim | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/runtime/syntax/checkhealth.vim b/runtime/syntax/checkhealth.vim new file mode 100644 index 0000000000..dff880a0bc --- /dev/null +++ b/runtime/syntax/checkhealth.vim @@ -0,0 +1,28 @@ +" Vim syntax file +" Language: Neovim checkhealth buffer +" Last Change: 2021 Dec 15 + +if exists("b:current_syntax") + finish +endif + +runtime! syntax/markdown.vim +unlet! b:current_syntax + +syn case match + +" We do not care about markdown syntax errors +syn clear markdownError + +syn keyword healthError ERROR[:] containedin=markdownCodeBlock,mkdListItemLine +syn keyword healthWarning WARNING[:] containedin=markdownCodeBlock,mkdListItemLine +syn keyword healthSuccess OK[:] containedin=markdownCodeBlock,mkdListItemLine +syn match healthHelp "|.\{-}|" containedin=markdownCodeBlock,mkdListItemLine contains=healthBar +syn match healthBar "|" contained conceal + +hi def link healthError Error +hi def link healthWarning WarningMsg +hi def healthSuccess guibg=#5fff00 guifg=#080808 ctermbg=82 ctermfg=232 +hi def link healthHelp Identifier + +let b:current_syntax = "checkhealth" |