1 # Author : Sergei Trofimovich <slyfox@inbox.ru>
5 # sh.syntax is taken as base.
7 # Note : keep in sync default and " " contexts
10 # # Since I regulary update ths file, please send any comments
11 # # to: Michelle Konzack <linux4michelle@freenet.de>
12 # # Last Update: Thu, 01 Jun 2006 22:10:07 +0200
15 #.ebuild specific commands/glo vars
16 # TODO: 1. split keywords by .eclass'es
17 # 2. grep all exports and place here
18 keyword whole DEPEND brightcyan
19 keyword whole DESCRIPTION brightcyan
20 keyword whole EAPI brightcyan
21 keyword whole EGIT_REPO_URI brightcyan
22 keyword whole ESVN_REPO_URI brightcyan
23 keyword whole EXPORT_FUNCTIONS brightcyan
24 keyword whole HOMEPAGE brightcyan
25 keyword whole IUSE brightcyan
26 keyword whole KEYWORDS brightcyan
27 keyword whole LICENSE brightcyan
28 keyword whole PDEPEND brightcyan
29 keyword whole PROVIDE brightcyan
30 keyword whole RDEPEND brightcyan
31 keyword whole RESTRICT brightcyan
32 keyword whole S brightcyan
33 keyword whole SLOT brightcyan
34 keyword whole SRC_URI brightcyan
35 keyword whole WANT_AUTOCONF brightcyan
36 keyword whole WANT_AUTOMAKE brightcyan
37 keyword DOCS brightcyan
38 keyword LINGUAS brightcyan
40 keyword whole _elibtoolize yellow
41 keyword whole check_KV yellow
42 keyword whole best_version yellow
43 keyword whole built_with_use yellow
44 keyword whole die yellow
45 keyword whole diropts yellow
46 keyword whole dobin yellow
47 keyword whole docinto yellow
48 keyword whole doconfd yellow
49 keyword whole dodir yellow
50 keyword whole dodoc yellow
51 keyword whole doenvd yellow
52 keyword whole doexe yellow
53 keyword whole dohard yellow
54 keyword whole dohtml yellow
55 keyword whole doicon yellow
56 keyword whole doinfo yellow
57 keyword whole doinitd yellow
58 keyword whole doins yellow
59 keyword whole dolib yellow
60 keyword whole dolib.a yellow
61 keyword whole dolib.so yellow
62 keyword whole doman yellow
63 keyword whole domenu yellow
64 keyword whole dosbin yellow
65 keyword whole dosed yellow
66 keyword whole dosym yellow
67 keyword whole eautoconf yellow
68 keyword whole eautoreconf yellow
69 keyword whole eautomake yellow
70 keyword whole ebegin yellow
71 keyword whole econf yellow
72 keyword whole eend yellow
73 keyword whole eerror yellow
74 keyword whole einfo yellow
75 keyword whole einstall yellow
76 keyword whole elibtoolize yellow
77 keyword whole elog yellow
78 keyword whole emake yellow
79 keyword whole epatch yellow
80 keyword whole ewarn yellow
81 keyword whole exeinto yellow
82 keyword whole exeopts yellow
83 keyword whole enewgroup yellow
84 keyword whole enewuser yellow
85 keyword whole fowners yellow
86 keyword whole fperms yellow
87 keyword whole has yellow
88 keyword whole hasq yellow
89 keyword whole has_version yellow
90 keyword whole insinto yellow
91 keyword whole insopts yellow
92 keyword whole intltoolize yellow
93 keyword whole into yellow
94 keyword whole keepdir yellow
95 keyword whole libopts yellow
96 keyword whole local yellow
97 keyword whole newbin yellow
98 keyword whole newconfd yellow
99 keyword whole newdoc yellow
100 keyword whole newexe yellow
101 keyword whole newins yellow
102 keyword whole newman yellow
103 keyword whole newsbin yellow
104 keyword whole newinitd yellow
105 keyword whole prepall yellow
106 keyword whole prepalldocs yellow
107 keyword whole prepallinfo yellow
108 keyword whole prepallman yellow
109 keyword whole unpack yellow
110 keyword whole use yellow
111 keyword whole use_enable yellow
112 keyword whole use_with yellow
114 keyword whole append-flags yellow
115 keyword whole replace-flags yellow
116 keyword whole strip-flags yellow
118 keyword whole git_src_unpack yellow
120 keyword whole EANT_BUILD_TARGET yellow
122 keyword whole subversion_src_unpack yellow
125 # here starts original sh.syntax (with core commands only)
130 keyword \\@ brightred
131 keyword \\$ brightred
132 keyword \\\\ brightred
133 keyword \\" brightred
134 keyword \\' brightred
135 keyword \\` brightred
138 keyword $(*) brightgreen
139 keyword ${*} brightgreen
143 keyword whole linestart #!\[\s\]*\n brightcyan black
145 keyword $\* brightred
154 keyword whole 2>&1 brightred
155 keyword whole 1>&2 brightred
156 keyword whole 2> brightred
157 keyword whole 1> brightred
159 keyword wholeright $\[0123456789\] brightred
161 keyword wholeright $+ brightgreen
163 keyword $ brightgreen
165 keyword wholeleft linestart function*() brightmagenta
166 keyword wholeleft linestart function\[\s\]+ brightmagenta
167 keyword wholeright +() brightmagenta
169 wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
171 keyword whole break yellow
172 keyword whole case yellow
173 keyword whole clear yellow
174 keyword whole continue yellow
175 keyword whole declare yellow
176 keyword whole done yellow
177 keyword whole do yellow
178 keyword whole elif yellow
179 keyword whole else yellow
180 keyword whole esac yellow
181 keyword whole exit yellow
182 keyword whole export yellow
183 keyword whole fi yellow
184 keyword whole for yellow
185 keyword whole getopts yellow
186 keyword whole if yellow
187 keyword whole in yellow
188 keyword whole return yellow
189 keyword whole select yellow
190 keyword whole shift yellow
191 keyword whole source yellow
192 keyword whole then yellow
193 keyword whole trap yellow
194 keyword whole until yellow
195 keyword whole unset yellow
196 keyword whole wait yellow
197 keyword whole while yellow
199 # here goes usable subset for .ebuild commands
200 keyword whole awk cyan
201 keyword whole cd cyan
202 keyword whole chown cyan
203 keyword whole chmod cyan
204 keyword whole cmake cyan
205 keyword whole cp cyan
206 keyword whole echo cyan
207 keyword whole egrep cyan
208 keyword whole fgrep cyan
209 keyword whole find cyan
210 keyword whole grep cyan
211 keyword whole ln cyan
212 keyword whole make cyan
213 keyword whole mkdir cyan
214 keyword whole mknod cyan
215 keyword whole mv cyan
216 keyword whole perl cyan
217 keyword whole pod2man cyan
218 keyword whole rm cyan
219 keyword whole sed cyan
220 keyword whole touch cyan
221 keyword whole xmkmf cyan
223 # some interesting files to copy
224 keyword whole ANNOUNCEMENT white
225 keyword whole AUTHORS white
226 keyword whole CHANGES white
227 keyword whole COPYING white
228 keyword whole COPYRIGHT white
229 keyword whole CREDITS white
230 keyword whole ChangeLog white
231 keyword whole FAQ white
232 keyword whole HACKING white
233 keyword whole INSTALL white
234 keyword whole LICENSE white
235 keyword whole NEWS white
236 keyword whole README white
237 keyword whole THANKS white
238 keyword whole TODO white
240 keyword whole /dev/audio brightblue
241 keyword whole /dev/dsp brightblue
242 keyword whole /dev/null brightblue
243 keyword whole /dev/mixed brightblue
244 keyword whole /dev/stdin brightblue
245 keyword whole /dev/stdout brightblue
246 keyword whole /dev/stderr brightblue
247 keyword whole /dev/zero brightblue
249 wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
254 context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]EOF EOF green
255 context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]END END green
260 keyword \\* brightgreen
261 keyword \\@ brightgreen
262 keyword \\$ brightgreen
263 keyword \\\\ brightgreen
264 keyword \\` brightgreen
265 keyword \\" brightgreen
266 keyword $(*) brightgreen
267 keyword ${*} brightgreen
268 keyword $\* brightred
276 keyword wholeright $\[0123456789\] brightred
278 keyword wholeright $+ brightgreen
280 keyword $ brightgreen
282 context exclusive ` ` lightgray black
287 keyword $(*) brightgreen
288 keyword ${*} brightgreen
292 keyword $\* brightred
301 keyword whole 2>&1 brightred
302 keyword whole 2> brightred
303 keyword whole 1> brightred
305 keyword wholeright $\[0123456789\] brightred
307 keyword wholeright $+ brightgreen
309 keyword $ brightgreen
311 wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
313 keyword whole break yellow
314 keyword whole case yellow
315 keyword whole clear yellow
316 keyword whole continue yellow
317 keyword whole declare yellow
318 keyword whole done yellow
319 keyword whole do yellow
320 keyword whole elif yellow
321 keyword whole else yellow
322 keyword whole esac yellow
323 keyword whole exit yellow
324 keyword whole fi yellow
325 keyword whole for yellow
326 keyword whole getopts yellow
327 keyword whole if yellow
328 keyword whole in yellow
329 keyword whole return yellow
330 keyword whole select yellow
331 keyword whole shift yellow
332 keyword whole source yellow
333 keyword whole then yellow
334 keyword whole trap yellow
335 keyword whole until yellow
336 keyword whole wait yellow
337 keyword whole while yellow
339 # here goes usable subset for .ebuild commands
340 keyword whole awk cyan
341 keyword whole sed cyan
343 keyword whole /dev/audio brightblue
344 keyword whole /dev/dsp brightblue
345 keyword whole /dev/null brightblue
346 keyword whole /dev/mixed brightblue
347 keyword whole /dev/stdin brightblue
348 keyword whole /dev/stdout brightblue
349 keyword whole /dev/stderr brightblue
350 keyword whole /dev/zero brightblue
352 context inherit \n magenta
353 keyword whole inherit yellow