aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-15 11:56:02 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-10-15 12:06:13 +0200
commitc4ab110e04e0f447b836e0d613690b24b02f5c24 (patch)
treed6a695a7d009d98b17cf9cd58044890fa0d6b551 /runtime
parent7ca1f43f68522770c768b6221752388684b5f658 (diff)
downloadrneovim-c4ab110e04e0f447b836e0d613690b24b02f5c24.tar.gz
rneovim-c4ab110e04e0f447b836e0d613690b24b02f5c24.tar.bz2
rneovim-c4ab110e04e0f447b836e0d613690b24b02f5c24.zip
health.vim: fix highlighting
`:syntax keyword` is affected by 'iskeyword'. When we aligned 'iskeyword' to that of filetype=help, colon (:) is now included. Simplest way to deal with this is to include colon (:) in the `:syntax keyword` directive. Also: - change "SUGGESTIONS" mouthful to "ADVICE" - change "SUCCESS" to "OK"
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/health.vim12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/autoload/health.vim b/runtime/autoload/health.vim
index bd99a0e104..a4d46953e2 100644
--- a/runtime/autoload/health.vim
+++ b/runtime/autoload/health.vim
@@ -1,15 +1,15 @@
function! s:enhance_syntax() abort
syntax case match
- syntax keyword healthError ERROR
+ syntax keyword healthError ERROR[:]
\ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthError Error
- syntax keyword healthWarning WARNING
+ syntax keyword healthWarning WARNING[:]
\ containedin=markdownCodeBlock,mkdListItemLine
highlight link healthWarning WarningMsg
- syntax keyword healthSuccess SUCCESS
+ syntax keyword healthSuccess OK[:]
\ containedin=markdownCodeBlock,mkdListItemLine
highlight healthSuccess guibg=#5fff00 guifg=#080808 ctermbg=82 ctermfg=232
@@ -102,13 +102,13 @@ function! s:format_report_message(status, msg, ...) abort " {{{
if a:0 > 0
let suggestions = type(a:1) == type("") ? [a:1] : a:1
if type(suggestions) != type([])
- echoerr "Expected String or List"
+ throw "Expected String or List"
endif
endif
" Report each suggestion
if len(suggestions) > 0
- let output .= "\n - SUGGESTIONS:"
+ let output .= "\n - ADVICE:"
endif
for suggestion in suggestions
let output .= "\n - " . s:indent_after_line1(suggestion, 10)
@@ -124,7 +124,7 @@ endfunction " }}}
" Reports a successful healthcheck.
function! health#report_ok(msg) abort " {{{
- echo s:format_report_message('SUCCESS', a:msg)
+ echo s:format_report_message('OK', a:msg)
endfunction " }}}
" Reports a health warning.