checkhealth.vim (595B)
1 " Vim syntax file 2 " Language: Nvim :checkhealth buffer 3 4 if exists("b:current_syntax") 5 finish 6 endif 7 8 runtime! syntax/help.vim 9 unlet! b:current_syntax 10 11 syn case match 12 13 syn keyword DiagnosticError ERROR[:] 14 syn keyword DiagnosticWarn WARNING[:] 15 syn keyword DiagnosticOk OK[:] 16 " Note: hs=e starts higlighting on the title line (instead of the "===" line). 17 syn match healthSectionDelim /^======*\n.*$/hs=e 18 highlight default healthSectionDelim gui=reverse cterm=reverse 19 syn match healthHeadingChar "=" conceal cchar= contained containedin=healthSectionDelim 20 21 let b:current_syntax = "checkhealth"