4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: There is no highlighting of translated items in help files.
12 Solution: Search for a "help_ab.vim" syntax file when the help file is
13 called "*.abx". Also improve the help highlighting a bit.
14 Files: runtime/syntax/help.vim
17 *** ../vim-6.2.386/runtime/syntax/help.vim Mon Jan 20 21:43:52 2003
18 --- runtime/syntax/help.vim Fri Mar 19 13:18:11 2004
22 " Language: Vim help file
23 " Maintainer: Bram Moolenaar (Bram@vim.org)
24 ! " Last Change: 2003 Jan 20
26 " For version 5.x: Clear all syntax items
27 " For version 6.x: Quit when a syntax file was already loaded
30 " Language: Vim help file
31 " Maintainer: Bram Moolenaar (Bram@vim.org)
32 ! " Last Change: 2004 Mar 19
34 " For version 5.x: Clear all syntax items
35 " For version 6.x: Quit when a syntax file was already loaded
38 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$"
40 syn match helpNormal "|.*====*|"
41 syn match helpVim "Vim version [0-9.a-z]\+"
42 syn match helpVim "VIM REFERENCE.*"
43 syn match helpOption "'[a-z]\{2,\}'"
44 syn match helpOption "'t_..'"
45 syn match helpHeader ".*\~$"me=e-1 nextgroup=helpIgnore
46 syn match helpIgnore "." contained
47 ! syn keyword helpNote note Note NOTE note: Note: NOTE:
48 syn match helpSpecial "\<N\>"
49 syn match helpSpecial "(N\>"ms=s+1
50 syn match helpSpecial "\[N]"
51 " avoid highlighting N N in help.txt
53 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$"
55 syn match helpNormal "|.*====*|"
56 + syn match helpNormal ":|vim:|" " for :help modeline
57 syn match helpVim "Vim version [0-9.a-z]\+"
58 syn match helpVim "VIM REFERENCE.*"
59 syn match helpOption "'[a-z]\{2,\}'"
60 syn match helpOption "'t_..'"
61 syn match helpHeader ".*\~$"me=e-1 nextgroup=helpIgnore
62 syn match helpIgnore "." contained
63 ! syn keyword helpNote note Note NOTE note: Note: NOTE: Notes Notes:
64 syn match helpSpecial "\<N\>"
65 + syn match helpSpecial "\<N\.$"me=e-1
66 + syn match helpSpecial "\<N\.\s"me=e-2
67 syn match helpSpecial "(N\>"ms=s+1
68 syn match helpSpecial "\[N]"
69 " avoid highlighting N N in help.txt
73 syn match helpSpecial "Nth"me=e-2
74 syn match helpSpecial "N-1"me=e-2
75 syn match helpSpecial "{[-a-zA-Z0-9'":%#=[\]<>.,]\+}"
76 + syn match helpSpecial "{[-a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}"
77 syn match helpSpecial "\s\[[-a-z^A-Z0-9_]\{2,}]"ms=s+1
78 syn match helpSpecial "<[-a-zA-Z0-9_]\+>"
79 syn match helpSpecial "<[SCM]-.>"
83 syn match helpSpecial "\[num]"
84 syn match helpSpecial "\[+num]"
85 syn match helpSpecial "\[-num]"
86 + syn match helpSpecial "\[+cmd]"
87 + syn match helpSpecial "\[++opt]"
88 + syn match helpSpecial "\[arg]"
89 + syn match helpSpecial "\[arguments]"
90 + syn match helpSpecial "\[ident]"
91 + syn match helpSpecial "\[addr]"
92 + syn match helpSpecial "\[group]"
93 syn match helpSpecial "CTRL-."
94 syn match helpSpecial "CTRL-Break"
95 syn match helpSpecial "CTRL-PageUp"
99 syn region helpNotVi start="{Vi[: ]" start="{not" start="{only" end="}" contains=helpLeadBlank,helpHyperTextJump
100 syn match helpLeadBlank "^\s\+" contained
102 + " Highlight group items in their own color.
103 + syn match helpComment "\t[* ]Comment\t\+[a-z].*"
104 + syn match helpConstant "\t[* ]Constant\t\+[a-z].*"
105 + syn match helpString "\t[* ]String\t\+[a-z].*"
106 + syn match helpCharacter "\t[* ]Character\t\+[a-z].*"
107 + syn match helpNumber "\t[* ]Number\t\+[a-z].*"
108 + syn match helpBoolean "\t[* ]Boolean\t\+[a-z].*"
109 + syn match helpFloat "\t[* ]Float\t\+[a-z].*"
110 + syn match helpIdentifier "\t[* ]Identifier\t\+[a-z].*"
111 + syn match helpFunction "\t[* ]Function\t\+[a-z].*"
112 + syn match helpStatement "\t[* ]Statement\t\+[a-z].*"
113 + syn match helpConditional "\t[* ]Conditional\t\+[a-z].*"
114 + syn match helpRepeat "\t[* ]Repeat\t\+[a-z].*"
115 + syn match helpLabel "\t[* ]Label\t\+[a-z].*"
116 + syn match helpOperator "\t[* ]Operator\t\+["a-z].*"
117 + syn match helpKeyword "\t[* ]Keyword\t\+[a-z].*"
118 + syn match helpException "\t[* ]Exception\t\+[a-z].*"
119 + syn match helpPreProc "\t[* ]PreProc\t\+[a-z].*"
120 + syn match helpInclude "\t[* ]Include\t\+[a-z].*"
121 + syn match helpDefine "\t[* ]Define\t\+[a-z].*"
122 + syn match helpMacro "\t[* ]Macro\t\+[a-z].*"
123 + syn match helpPreCondit "\t[* ]PreCondit\t\+[a-z].*"
124 + syn match helpType "\t[* ]Type\t\+[a-z].*"
125 + syn match helpStorageClass "\t[* ]StorageClass\t\+[a-z].*"
126 + syn match helpStructure "\t[* ]Structure\t\+[a-z].*"
127 + syn match helpTypedef "\t[* ]Typedef\t\+[Aa-z].*"
128 + syn match helpSpecial "\t[* ]Special\t\+[a-z].*"
129 + syn match helpSpecialChar "\t[* ]SpecialChar\t\+[a-z].*"
130 + syn match helpTag "\t[* ]Tag\t\+[a-z].*"
131 + syn match helpDelimiter "\t[* ]Delimiter\t\+[a-z].*"
132 + syn match helpSpecialComment "\t[* ]SpecialComment\t\+[a-z].*"
133 + syn match helpDebug "\t[* ]Debug\t\+[a-z].*"
134 + syn match helpUnderlined "\t[* ]Underlined\t\+[a-z].*"
135 + syn match helpError "\t[* ]Error\t\+[a-z].*"
136 + syn match helpTodo "\t[* ]Todo\t\+[a-z].*"
139 + " Additionally load a language-specific syntax file "help_ab.vim".
140 + let i = match(expand("%"), '\.\a\ax$')
142 + exe "runtime syntax/help_" . strpart(expand("%"), i + 1, 2) . ".vim"
151 HiLink helpSpecial Special
153 HiLink Subtitle Identifier
155 + HiLink helpComment Comment
156 + HiLink helpConstant Constant
157 + HiLink helpString String
158 + HiLink helpCharacter Character
159 + HiLink helpNumber Number
160 + HiLink helpBoolean Boolean
161 + HiLink helpFloat Float
162 + HiLink helpIdentifier Identifier
163 + HiLink helpFunction Function
164 + HiLink helpStatement Statement
165 + HiLink helpConditional Conditional
166 + HiLink helpRepeat Repeat
167 + HiLink helpLabel Label
168 + HiLink helpOperator Operator
169 + HiLink helpKeyword Keyword
170 + HiLink helpException Exception
171 + HiLink helpPreProc PreProc
172 + HiLink helpInclude Include
173 + HiLink helpDefine Define
174 + HiLink helpMacro Macro
175 + HiLink helpPreCondit PreCondit
176 + HiLink helpType Type
177 + HiLink helpStorageClass StorageClass
178 + HiLink helpStructure Structure
179 + HiLink helpTypedef Typedef
180 + HiLink helpSpecialChar SpecialChar
182 + HiLink helpDelimiter Delimiter
183 + HiLink helpSpecialComment SpecialComment
184 + HiLink helpDebug Debug
185 + HiLink helpUnderlined Underlined
186 + HiLink helpError Error
187 + HiLink helpTodo Todo
191 *** ../vim-6.2.386/src/version.c Sat Mar 20 21:21:41 2004
192 --- src/version.c Mon Mar 22 14:31:10 2004
196 { /* Add new patch number below this line */
202 From "know your smileys":
204 <|-( Chinese and doesn't like these kind of jokes
206 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
207 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
208 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
209 \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///