ebuild.syntax 11 KB

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