Mercurial > vim
comparison runtime/syntax/help.vim @ 828:01583c79d5f4 v7.0d03
updated for version 7.0d03
author | vimboss |
---|---|
date | Thu, 13 Apr 2006 20:37:35 +0000 |
parents | fd1b3406fd1c |
children | 96cd8222a819 |
comparison
equal
deleted
inserted
replaced
827:fd1b3406fd1c | 828:01583c79d5f4 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Vim help file | 2 " Language: Vim help file |
3 " Maintainer: Bram Moolenaar (Bram@vim.org) | 3 " Maintainer: Bram Moolenaar (Bram@vim.org) |
4 " Last Change: 2006 Apr 12 | 4 " Last Change: 2006 Apr 13 |
5 | 5 |
6 " Quit when a (custom) syntax file was already loaded | 6 " Quit when a (custom) syntax file was already loaded |
7 if exists("b:current_syntax") | 7 if exists("b:current_syntax") |
8 finish | 8 finish |
9 endif | 9 endif |
12 syn match helpSectionDelim "^=\{3,}.*===$" | 12 syn match helpSectionDelim "^=\{3,}.*===$" |
13 syn match helpSectionDelim "^-\{3,}.*--$" | 13 syn match helpSectionDelim "^-\{3,}.*--$" |
14 syn region helpExample matchgroup=helpIgnore start=" >$" start="^>$" end="^[^ \t]"me=e-1 end="^<" | 14 syn region helpExample matchgroup=helpIgnore start=" >$" start="^>$" end="^[^ \t]"me=e-1 end="^<" |
15 if has("ebcdic") | 15 if has("ebcdic") |
16 syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar | 16 syn match helpHyperTextJump "\\\@<!|[^"*|]\+|" contains=helpBar |
17 syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 | 17 syn match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar |
18 syn match helpHyperTextEntry "\*[^"*|]\+\*$" | 18 syn match helpHyperTextEntry "\*[^"*|]\+\*$" contains=helpStar |
19 else | 19 else |
20 syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar | 20 syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar |
21 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 | 21 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar |
22 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" | 22 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar |
23 endif | 23 endif |
24 syn match helpBar contained "|" | 24 syn match helpBar contained "|" |
25 syn match helpStar contained "\*" | |
25 syn match helpNormal "|.*====*|" | 26 syn match helpNormal "|.*====*|" |
26 syn match helpNormal ":|vim:|" " for :help modeline | 27 syn match helpNormal ":|vim:|" " for :help modeline |
27 syn match helpVim "Vim version [0-9.a-z]\+" | 28 syn match helpVim "Vim version [0-9.a-z]\+" |
28 syn match helpVim "VIM REFERENCE.*" | 29 syn match helpVim "VIM REFERENCE.*" |
29 syn match helpOption "'[a-z]\{2,\}'" | 30 syn match helpOption "'[a-z]\{2,\}'" |
122 " Only used when an item doesn't have highlighting yet | 123 " Only used when an item doesn't have highlighting yet |
123 hi def link helpExampleStart helpIgnore | 124 hi def link helpExampleStart helpIgnore |
124 hi def link helpIgnore Ignore | 125 hi def link helpIgnore Ignore |
125 hi def link helpHyperTextJump Subtitle | 126 hi def link helpHyperTextJump Subtitle |
126 hi def link helpBar Ignore | 127 hi def link helpBar Ignore |
128 hi def link helpStar Ignore | |
127 hi def link helpHyperTextEntry String | 129 hi def link helpHyperTextEntry String |
128 hi def link helpHeadline Statement | 130 hi def link helpHeadline Statement |
129 hi def link helpHeader PreProc | 131 hi def link helpHeader PreProc |
130 hi def link helpSectionDelim PreProc | 132 hi def link helpSectionDelim PreProc |
131 hi def link helpVim Identifier | 133 hi def link helpVim Identifier |