Better conceal in help. (partly by Dominique Pelle)

This commit is contained in:
Bram Moolenaar
2010-07-18 14:34:51 +02:00
parent 5074e3018b
commit 9855d6b361
7 changed files with 61 additions and 62 deletions

View File

@ -4906,8 +4906,8 @@ searchpairpos({start}, {middle}, {end} [, {flags} [, {skip}
column position of the match. The first element of the |List| column position of the match. The first element of the |List|
is the line number and the second element is the byte index of is the line number and the second element is the byte index of
the column position of the match. If no match is found, the column position of the match. If no match is found,
returns [0, 0]. returns [0, 0]. >
>
:let [lnum,col] = searchpairpos('{', '', '}', 'n') :let [lnum,col] = searchpairpos('{', '', '}', 'n')
< <
See |match-parens| for a bigger and more useful example. See |match-parens| for a bigger and more useful example.

View File

@ -11,7 +11,7 @@ endif
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()]*[ \t]\+\*"me=e-1 syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()]*[ \t]\+\*"me=e-1
syn match helpSectionDelim "^=\{3,}.*===$" syn match helpSectionDelim "^=\{3,}.*===$"
syn match helpSectionDelim "^-\{3,}.*--$" syn match helpSectionDelim "^-\{3,}.*--$"
syn region helpExample matchgroup=helpIgnore start=" >$" start="^>$" end="^[^ \t]"me=e-1 end="^<" syn region helpExample matchgroup=helpIgnore start=" >$" start="^>$" end="^[^ \t]"me=e-1 end="^<" concealends
if has("ebcdic") if has("ebcdic")
syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar
syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar
@ -132,7 +132,6 @@ syn sync minlines=40
" Define the default highlighting. " Define the default highlighting.
" Only used when an item doesn't have highlighting yet " Only used when an item doesn't have highlighting yet
hi def link helpExampleStart helpIgnore
hi def link helpIgnore Ignore hi def link helpIgnore Ignore
hi def link helpHyperTextJump Subtitle hi def link helpHyperTextJump Subtitle
hi def link helpBar Ignore hi def link helpBar Ignore