From 5471443eeacb91322fb7488bcd24b4eb6a609317 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT service" Date: Sat, 10 Jan 2009 17:55:35 +0100 Subject: [PATCH] edit/syntax: added ebuild Syntax defition (taken from rhclub-tree) --- ChangeLog | 2 + syntax/Makefile.am | 1 + syntax/Syntax | 3 ++ syntax/ebuild.syntax | 107 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 syntax/ebuild.syntax diff --git a/ChangeLog b/ChangeLog index d9f6e7dfa..b8df282e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ + 2009-01-19 Patrick Winnertz * edit/edit.h: Add two more ints @@ -41,6 +42,7 @@ * syntax/Makefile.am syntax/Syntax syntax/haskell.syntax: added syntax definition for Haskell (taken from rhclub-tree) + * syntax: added ebuild Syntax defition (taken from rhclub-tree) 2008-12-18 Roland Illig diff --git a/syntax/Makefile.am b/syntax/Makefile.am index 7b4841f69..2d9f29e2f 100644 --- a/syntax/Makefile.am +++ b/syntax/Makefile.am @@ -16,6 +16,7 @@ SYNTAXFILES = \ d.syntax \ diff.syntax \ dos.syntax \ + ebuild.syntax \ eiffel.syntax \ fortran.syntax \ haskell.syntax \ diff --git a/syntax/Syntax b/syntax/Syntax index 03de79250..e277ac6f9 100644 --- a/syntax/Syntax +++ b/syntax/Syntax @@ -148,6 +148,9 @@ include assembler.syntax file ..\*\\.([Pp][Oo][Vv])$ POV\sScript include povray.syntax +file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild +include ebuild.syntax + file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua include lua.syntax diff --git a/syntax/ebuild.syntax b/syntax/ebuild.syntax new file mode 100644 index 000000000..abaa4577e --- /dev/null +++ b/syntax/ebuild.syntax @@ -0,0 +1,107 @@ +context default + keyword linestart DEPEND brightcyan + keyword linestart DESCRIPTION brightcyan + keyword linestart EAPI brightcyan + keyword linestart HOMEPAGE brightcyan + keyword linestart IUSE brightcyan + keyword linestart KEYWORDS brightcyan + keyword linestart LICENSE brightcyan + keyword linestart PDEPEND brightcyan + keyword linestart PROVIDE brightcyan + keyword linestart RDEPEND brightcyan + keyword linestart RESTRICT brightcyan + keyword linestart S brightcyan + keyword linestart SLOT brightcyan + keyword linestart SRC_URI brightcyan + keyword linestart WANT_AUTOCONF brightcyan + keyword linestart WANT_AUTOMAKE brightcyan + + keyword whole _elibtoolize yellow + keyword whole check_KV yellow + keyword whole best_version yellow + keyword whole built_with_use yellow + keyword whole die yellow + keyword whole diropts yellow + keyword whole dobin yellow + keyword whole docinto yellow + keyword whole doconfd yellow + keyword whole dodir yellow + keyword whole dodoc yellow + keyword whole doenvd yellow + keyword whole doexe yellow + keyword whole dohard yellow + keyword whole dohtml yellow + keyword whole doicon yellow + keyword whole doinfo yellow + keyword whole doinitd yellow + keyword whole doins yellow + keyword whole dolib yellow + keyword whole dolib.a yellow + keyword whole dolib.so yellow + keyword whole doman yellow + keyword whole domenu yellow + keyword whole dosbin yellow + keyword whole dosed yellow + keyword whole dosym yellow + keyword whole eautoconf yellow + keyword whole eautoreconf yellow + keyword whole eautomake yellow + keyword whole ebegin yellow + keyword whole econf yellow + keyword whole eend yellow + keyword whole eerror yellow + keyword whole einfo yellow + keyword whole einstall yellow + keyword whole elibtoolize yellow + keyword whole elog yellow + keyword whole emake yellow + keyword whole epatch yellow + keyword whole ewarn yellow + keyword whole exeinto yellow + keyword whole exeopts yellow + keyword whole fowners yellow + keyword whole fperms yellow + keyword whole has yellow + keyword whole hasq yellow + keyword whole has_version yellow + keyword whole insinto yellow + keyword whole insopts yellow + keyword whole into yellow + keyword whole keepdir yellow + keyword whole libopts yellow + keyword whole local yellow + keyword whole newbin yellow + keyword whole newconfd yellow + keyword whole newdoc yellow + keyword whole newexe yellow + keyword whole newins yellow + keyword whole newman yellow + keyword whole newsbin yellow + keyword whole newinitd yellow + keyword whole prepall yellow + keyword whole prepalldocs yellow + keyword whole prepallinfo yellow + keyword whole prepallman yellow + keyword whole unpack yellow + keyword whole use yellow + keyword whole use_enable yellow + keyword whole use_with yellow + + keyword = yellow + keyword : yellow + keyword ${+} brightgreen + + keyword linestart abcdefghijklmnopqrstuvwxyz_\(\) brightmagenta + + keyword *() brightcyan + + keyword { magenta + keyword } magenta + +context linestart inherit \n magenta + keyword whole inherit yellow + +context # \n red + +context " " green + keyword wholeright ${+} brightgreen