summaryrefslogtreecommitdiff
path: root/runtime/syntax/help.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-07-18 19:40:27 +0200
committerBram Moolenaar <Bram@vim.org>2011-07-18 19:40:27 +0200
commit9729301aa0b6a419dcd87fe9aeed72c367ae72ef (patch)
tree6b69898bbf1a090cdf1fd26720bc4cfcb90c897b /runtime/syntax/help.vim
parent0acc5618f6954c6faf57032d6b4f611de4254acb (diff)
downloadvim-git-9729301aa0b6a419dcd87fe9aeed72c367ae72ef.tar.gz
Updated runtime files.
Add missing test82 files.
Diffstat (limited to 'runtime/syntax/help.vim')
-rw-r--r--runtime/syntax/help.vim17
1 files changed, 13 insertions, 4 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index 82c346826..98c40f571 100644
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: Bram Moolenaar (Bram@vim.org)
-" Last Change: 2010 Nov 03
+" Last Change: 2011 Jul 11
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
@@ -21,8 +21,13 @@ else
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar
syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar
endif
-syn match helpBar contained "|" conceal
-syn match helpStar contained "\*" conceal
+if has("conceal")
+ syn match helpBar contained "|" conceal
+ syn match helpStar contained "\*" conceal
+else
+ syn match helpBar contained "|"
+ syn match helpStar contained "\*"
+endif
syn match helpNormal "|.*====*|"
syn match helpNormal ":|vim:|" " for :help modeline
syn match helpVim "Vim version [0-9.a-z]\+"
@@ -31,7 +36,11 @@ syn match helpOption "'[a-z]\{2,\}'"
syn match helpOption "'t_..'"
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
-syn match helpIgnore "." contained conceal
+if has("conceal")
+ syn match helpIgnore "." contained conceal
+else
+ syn match helpIgnore "." contained
+endif
syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
syn match helpSpecial "\<N\>"
syn match helpSpecial "\<N\.$"me=e-1