ebuild.syntax 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. # Author : Sergei Trofimovich <slyfox@inbox.ru>
  2. # Language : shell
  3. # Mode : ebuild
  4. #
  5. # sh.syntax is taken as base.
  6. #
  7. # Note : keep in sync default and " " contexts
  8. #
  9. # 'sh.syntax' header:
  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
  13. context default
  14. #.ebuild specific commands/glo vars
  15. # TODO: 1. split keywords by .eclass'es
  16. # 2. grep all exports and place here
  17. keyword whole CABAL_FEATURES brightcyan
  18. keyword whole DEPEND brightcyan
  19. keyword whole DESCRIPTION brightcyan
  20. keyword whole EAPI brightcyan
  21. keyword whole EDARCS_REPOSITORY brightcyan
  22. keyword whole EDARCS_GET_CMD brightcyan
  23. keyword whole EDARCS_LOCALREPO brightcyan
  24. keyword whole EGIT_BRANCH brightcyan
  25. keyword whole EGIT_PROJECT brightcyan
  26. keyword whole EGIT_REPO_URI brightcyan
  27. keyword whole EGIT_TREE brightcyan
  28. keyword whole ESVN_REPO_URI brightcyan
  29. keyword whole EXPORT_FUNCTIONS brightcyan
  30. keyword whole HOMEPAGE brightcyan
  31. keyword whole IUSE brightcyan
  32. keyword whole KEYWORDS brightcyan
  33. keyword whole LICENSE brightcyan
  34. keyword whole PATCHES brightcyan
  35. keyword whole PDEPEND brightcyan
  36. keyword whole PROVIDE brightcyan
  37. keyword whole RDEPEND brightcyan
  38. keyword whole RESTRICT brightcyan
  39. keyword whole S brightcyan
  40. keyword whole SITEFILE brightcyan
  41. keyword whole SLOT brightcyan
  42. keyword whole SRC_URI brightcyan
  43. keyword whole WANT_AUTOCONF brightcyan
  44. keyword whole WANT_AUTOMAKE brightcyan
  45. keyword DOCS brightcyan
  46. keyword LINGUAS brightcyan
  47. keyword whole _elibtoolize yellow
  48. keyword whole best_version yellow
  49. keyword whole built_with_use yellow
  50. keyword whole check_KV yellow
  51. keyword whole die yellow
  52. keyword whole diropts yellow
  53. keyword whole dobin yellow
  54. keyword whole docinto yellow
  55. keyword whole doconfd yellow
  56. keyword whole dodir yellow
  57. keyword whole dodoc yellow
  58. keyword whole doenvd yellow
  59. keyword whole doexe yellow
  60. keyword whole dohard yellow
  61. keyword whole dohtml yellow
  62. keyword whole doicon yellow
  63. keyword whole doinfo yellow
  64. keyword whole doinitd yellow
  65. keyword whole doins yellow
  66. keyword whole dolib yellow
  67. keyword whole dolib.a yellow
  68. keyword whole dolib.so yellow
  69. keyword whole doman yellow
  70. keyword whole domenu yellow
  71. keyword whole dosbin yellow
  72. keyword whole dosed yellow
  73. keyword whole dosym yellow
  74. keyword whole eaclocal yellow
  75. keyword whole eautoconf yellow
  76. keyword whole eautoreconf yellow
  77. keyword whole eautomake yellow
  78. keyword whole ebegin yellow
  79. keyword whole econf yellow
  80. keyword whole eend yellow
  81. keyword whole eerror yellow
  82. keyword whole einfo yellow
  83. keyword whole einstall yellow
  84. keyword whole elibtoolize yellow
  85. keyword whole elog yellow
  86. keyword whole emake yellow
  87. keyword whole epatch yellow
  88. keyword whole ewarn yellow
  89. keyword whole exeinto yellow
  90. keyword whole exeopts yellow
  91. keyword whole enewgroup yellow
  92. keyword whole enewuser yellow
  93. keyword whole fowners yellow
  94. keyword whole fperms yellow
  95. keyword whole has yellow
  96. keyword whole hasq yellow
  97. keyword whole has_version yellow
  98. keyword whole insinto yellow
  99. keyword whole insopts yellow
  100. keyword whole intltoolize yellow
  101. keyword whole into yellow
  102. keyword whole keepdir yellow
  103. keyword whole libopts yellow
  104. keyword whole local yellow
  105. keyword whole newbin yellow
  106. keyword whole newconfd yellow
  107. keyword whole newdoc yellow
  108. keyword whole newexe yellow
  109. keyword whole newins yellow
  110. keyword whole newman yellow
  111. keyword whole newsbin yellow
  112. keyword whole newinitd yellow
  113. keyword whole prepall yellow
  114. keyword whole prepalldocs yellow
  115. keyword whole prepallinfo yellow
  116. keyword whole prepallman yellow
  117. keyword whole unpack yellow
  118. keyword whole use yellow
  119. keyword whole use_enable yellow
  120. keyword whole use_with yellow
  121. #base
  122. keyword whole base_src_unpack yellow
  123. #cvs
  124. keyword whole cvs_src_unpack yellow
  125. #darcs
  126. keyword whole darcs_src_unpack yellow
  127. #elisp-common
  128. keyword whole elisp-compile yellow
  129. keyword whole elisp-install yellow
  130. keyword whole elisp-site-file-install yellow
  131. keyword whole elisp-site-regen yellow
  132. #flag-o-matic
  133. keyword whole append-flags yellow
  134. keyword whole filter-flags yellow
  135. keyword whole replace-flags yellow
  136. keyword whole strip-flags yellow
  137. keyword whole strip-unsupported-flags yellow
  138. #git
  139. keyword whole git_src_unpack yellow
  140. #java-ant-2
  141. keyword whole EANT_BUILD_TARGET yellow
  142. #mercurial
  143. keyword whole mercurial_src_unpack yellow
  144. #svn
  145. keyword whole subversion_src_unpack yellow
  146. ####################
  147. # here starts original sh.syntax (with core commands only)
  148. ####################
  149. keyword ! brightred
  150. keyword ;; brightred
  151. keyword \\@ brightred
  152. keyword \\$ brightred
  153. keyword \\\\ brightred
  154. keyword \\" brightred
  155. keyword \\' brightred
  156. keyword \\` brightred
  157. keyword ` brightred
  158. keyword ; brightcyan
  159. keyword $(*) brightgreen
  160. keyword ${*} brightgreen
  161. keyword { brightcyan
  162. keyword } brightcyan
  163. keyword whole linestart #!\[\s\]*\n brightcyan black
  164. keyword $\* brightred
  165. keyword $@ brightred
  166. keyword $# brightred
  167. keyword $? brightred
  168. keyword $- brightred
  169. keyword $$ brightred
  170. keyword $! brightred
  171. keyword $_ brightred
  172. keyword whole 2>&1 brightred
  173. keyword whole 1>&2 brightred
  174. keyword whole 2> brightred
  175. keyword whole 1> brightred
  176. keyword wholeright $\[0123456789\] brightred
  177. keyword wholeright $+ brightgreen
  178. keyword $ brightgreen
  179. keyword wholeleft linestart function*() brightmagenta
  180. keyword wholeleft linestart function\[\s\]+ brightmagenta
  181. keyword wholeright +() brightmagenta
  182. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
  183. keyword whole break yellow
  184. keyword whole case yellow
  185. keyword whole clear yellow
  186. keyword whole continue yellow
  187. keyword whole declare yellow
  188. keyword whole done yellow
  189. keyword whole do yellow
  190. keyword whole elif yellow
  191. keyword whole else yellow
  192. keyword whole esac yellow
  193. keyword whole exit yellow
  194. keyword whole export yellow
  195. keyword whole fi yellow
  196. keyword whole for yellow
  197. keyword whole getopts yellow
  198. keyword whole if yellow
  199. keyword whole in yellow
  200. keyword whole read yellow
  201. keyword whole return yellow
  202. keyword whole select yellow
  203. keyword whole shift yellow
  204. keyword whole source yellow
  205. keyword whole then yellow
  206. keyword whole trap yellow
  207. keyword whole until yellow
  208. keyword whole unset yellow
  209. keyword whole wait yellow
  210. keyword whole while yellow
  211. # here goes usable subset for .ebuild commands
  212. keyword whole awk cyan
  213. keyword whole cd cyan
  214. keyword whole chown cyan
  215. keyword whole chmod cyan
  216. keyword whole cmake cyan
  217. keyword whole cp cyan
  218. keyword whole echo cyan
  219. keyword whole egrep cyan
  220. keyword whole fgrep cyan
  221. keyword whole find cyan
  222. keyword whole grep cyan
  223. keyword whole ln cyan
  224. keyword whole make cyan
  225. keyword whole mkdir cyan
  226. keyword whole mknod cyan
  227. keyword whole mv cyan
  228. keyword whole perl cyan
  229. keyword whole pod2man cyan
  230. keyword whole rm cyan
  231. keyword whole sed cyan
  232. keyword whole sh cyan
  233. keyword whole touch cyan
  234. keyword whole xmkmf cyan
  235. # some interesting files to copy
  236. keyword whole ANNOUNCEMENT white
  237. keyword whole AUTHORS white
  238. keyword whole BUGS white
  239. keyword whole CHANGES white
  240. keyword whole COPYING white
  241. keyword whole COPYRIGHT white
  242. keyword whole CREDITS white
  243. keyword whole ChangeLog white
  244. keyword whole FAQ white
  245. keyword whole HACKING white
  246. keyword whole INSTALL white
  247. keyword whole LICENSE white
  248. keyword whole NEWS white
  249. keyword whole README white
  250. keyword whole THANKS white
  251. keyword whole TODO white
  252. keyword whole VERSION white
  253. keyword whole /dev/audio brightblue
  254. keyword whole /dev/dsp brightblue
  255. keyword whole /dev/null brightblue
  256. keyword whole /dev/mixed brightblue
  257. keyword whole /dev/stdin brightblue
  258. keyword whole /dev/stdout brightblue
  259. keyword whole /dev/stderr brightblue
  260. keyword whole /dev/zero brightblue
  261. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
  262. context # \n brown
  263. spellcheck
  264. context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]EOF EOF green
  265. context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]END END green
  266. context ' ' green
  267. context " " green
  268. keyword \\* brightgreen
  269. keyword \\@ brightgreen
  270. keyword \\$ brightgreen
  271. keyword \\\\ brightgreen
  272. keyword \\` brightgreen
  273. keyword \\" brightgreen
  274. keyword $(*) brightgreen
  275. keyword ${*} brightgreen
  276. keyword $\* brightred
  277. keyword $@ brightred
  278. keyword $# brightred
  279. keyword $? brightred
  280. keyword $- brightred
  281. keyword $$ brightred
  282. keyword $! brightred
  283. keyword $_ brightred
  284. keyword wholeright $\[0123456789\] brightred
  285. keyword wholeright $+ brightgreen
  286. keyword $ brightgreen
  287. context exclusive ` ` lightgray black
  288. keyword '*' green
  289. keyword " green
  290. keyword \\` green
  291. keyword ; brightcyan
  292. keyword $(*) brightgreen
  293. keyword ${*} brightgreen
  294. keyword { brightcyan
  295. keyword } brightcyan
  296. keyword $\* brightred
  297. keyword $@ brightred
  298. keyword $# brightred
  299. keyword $? brightred
  300. keyword $- brightred
  301. keyword $$ brightred
  302. keyword $! brightred
  303. keyword $_ brightred
  304. keyword whole 2>&1 brightred
  305. keyword whole 2> brightred
  306. keyword whole 1> brightred
  307. keyword wholeright $\[0123456789\] brightred
  308. keyword wholeright $+ brightgreen
  309. keyword $ brightgreen
  310. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
  311. keyword whole break yellow
  312. keyword whole case yellow
  313. keyword whole clear yellow
  314. keyword whole continue yellow
  315. keyword whole declare yellow
  316. keyword whole done yellow
  317. keyword whole do yellow
  318. keyword whole elif yellow
  319. keyword whole else yellow
  320. keyword whole esac yellow
  321. keyword whole exit yellow
  322. keyword whole export yellow
  323. keyword whole fi yellow
  324. keyword whole for yellow
  325. keyword whole getopts yellow
  326. keyword whole if yellow
  327. keyword whole in yellow
  328. keyword whole read 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 unset yellow
  337. keyword whole wait yellow
  338. keyword whole while yellow
  339. # here goes usable subset for .ebuild commands
  340. keyword whole awk cyan
  341. keyword whole sed cyan
  342. keyword whole /dev/audio brightblue
  343. keyword whole /dev/dsp brightblue
  344. keyword whole /dev/null brightblue
  345. keyword whole /dev/mixed brightblue
  346. keyword whole /dev/stdin brightblue
  347. keyword whole /dev/stdout brightblue
  348. keyword whole /dev/stderr brightblue
  349. keyword whole /dev/zero brightblue
  350. context inherit \n magenta
  351. keyword whole inherit yellow