[PATCH] ebuild syntax file
Enrico Weigelt
weigelt at metux.de
Fri Dec 26 02:20:14 UTC 2008
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
-------------- next part --------------
#
# Adds gentoo ebuild file syntax definition
#
# Source: Gentoo Portage
# Reference: mc-4.6.1
# Submit-By: Enrico Weigelt, metux IT service <weigelt at metux.de>
# Submit-Date: 2008-12-26
# State: new
#
diff -ruN mc-4.6.1.orig/syntax/Makefile.am mc-4.6.1.ebuild-syntax/syntax/Makefile.am
--- mc-4.6.1.orig/syntax/Makefile.am 2008-12-26 02:19:54.000000000 +0100
+++ mc-4.6.1.ebuild-syntax/syntax/Makefile.am 2008-12-26 02:19:01.000000000 +0100
@@ -8,6 +8,7 @@
changelog.syntax \
diff.syntax \
dos.syntax \
+ ebuild.syntax \
eiffel.syntax \
fortran.syntax \
html.syntax \
diff -ruN mc-4.6.1.orig/syntax/Makefile.in mc-4.6.1.ebuild-syntax/syntax/Makefile.in
--- mc-4.6.1.orig/syntax/Makefile.in 2008-12-26 02:19:54.000000000 +0100
+++ mc-4.6.1.ebuild-syntax/syntax/Makefile.in 2008-12-26 02:19:18.000000000 +0100
@@ -222,6 +222,7 @@
changelog.syntax \
diff.syntax \
dos.syntax \
+ ebuild.syntax \
eiffel.syntax \
fortran.syntax \
html.syntax \
diff -ruN mc-4.6.1.orig/syntax/Syntax mc-4.6.1.ebuild-syntax/syntax/Syntax
--- mc-4.6.1.orig/syntax/Syntax 2008-12-26 02:19:54.000000000 +0100
+++ mc-4.6.1.ebuild-syntax/syntax/Syntax 2008-12-26 02:18:26.000000000 +0100
@@ -144,5 +144,8 @@
file Don_t_match_me Mail\sfolder ^From\s
include mail.syntax
+file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
+include ebuild.syntax
+
file .\* unknown
include unknown.syntax
diff -ruN mc-4.6.1.orig/syntax/Syntax.orig mc-4.6.1.ebuild-syntax/syntax/Syntax.orig
--- mc-4.6.1.orig/syntax/Syntax.orig 1970-01-01 01:00:00.000000000 +0100
+++ mc-4.6.1.ebuild-syntax/syntax/Syntax.orig 2005-05-26 09:21:34.000000000 +0200
@@ -0,0 +1,148 @@
+# This file describes which highlighting scheme is applied to a particular
+# file in mcedit.
+#
+# Each entry consists of two lines: a "file" specification and the
+# corresponding highlighting definition ("include"). A file specification
+# can have two or three fields, each separated by white-space characters.
+#
+# The first field is a regular expression that is matched against the file
+# name. The second field is a description of the file type and is
+# currently unused. The third (optional) field is a regular expression
+# that is matched against the first line of the file. The first entry
+# that matches wins, that is, all the entries below are ignored.
+#
+# Certain characters must be quoted in these fields. These are space (\s),
+# tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and
+# brackets [] must not be quoted in this file.
+#
+# You can use the following colors in the syntax highlighting files:
+# black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
+# brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
+# yellow
+#
+
+file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
+include syntax.syntax
+
+file ..\*\\.(e)$ Eiffel\sSource\sFile
+include eiffel.syntax
+
+file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
+include diff.syntax
+
+file ..\*\\.lsm$ LSM\sFile
+include lsm.syntax
+
+file ..\*\\.sh$ Shell\sScript ^#!.\*([\s/]([abd-z]?|ba|pdk)sh|@SH@)
+include sh.syntax
+
+file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
+include perl.syntax
+
+file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
+include python.syntax
+
+file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
+include ruby.syntax
+
+file ..\*\\.(man|[0-9n]|[0-9]x)$ NROFF\sSource
+include nroff.syntax
+
+file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
+include html.syntax
+
+file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
+include xml.syntax
+
+file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
+include pascal.syntax
+
+file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
+include ada95.syntax
+
+file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
+include tcl.syntax
+
+file ..\*\\.(sl|SL)$ S-Lang\sProgram
+include slang.syntax
+
+file ..\*\\.tex$ LaTeX\s2.09\sDocument
+include latex.syntax
+
+file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
+include texinfo.syntax
+
+file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h\.in)$ C/C\+\+\sProgram
+include c.syntax
+
+file ..\*\\.[fF]$ Fortran\sProgram
+include fortran.syntax
+
+file ..\*\\.i$ SWIG\sSource
+include swig.syntax
+
+file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
+include php.syntax
+
+file ..\*\\.(java|JAVA|Java|jav)$ Java\sProgram
+include java.syntax
+
+file ..\*\\.(cs|CS)$ C\#\sProgram
+include cs.syntax
+
+file ..\*\\.(js|JS)$ JavaScript\sProgram
+include js.syntax
+
+file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
+include aspx.syntax
+
+file ..\*\\.st$ SmallTalk\sProgram
+include smalltalk.syntax
+
+file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
+include lisp.syntax
+
+file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
+include ml.syntax
+
+file ..\*\\.m$ Matlab\sor\sOctave\sFile
+include octave.syntax
+
+file ..\*\\.(sql|SQL)$ SQL\sProgram
+include sql.syntax
+
+file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
+include spec.syntax
+
+file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
+include changelog.syntax
+
+file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk)$ Makefile
+include makefile.syntax
+
+file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
+include m4.syntax
+
+file ..\*\\.(bat|cmd)$ DOS\sBatch
+include dos.syntax
+
+file ..\*\\.(po|pot|pox)$ PO\sFile
+include po.syntax
+
+file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
+include assembler.syntax
+
+file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
+include povray.syntax
+
+file ..\*\\.([lL][uU][aA])$ LUA\sProgram
+include lua.syntax
+
+file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
+include idl.syntax
+
+file Don_t_match_me Mail\sfolder ^From\s
+include mail.syntax
+
+file .\* unknown
+include unknown.syntax
diff -ruN mc-4.6.1.orig/syntax/ebuild.syntax mc-4.6.1.ebuild-syntax/syntax/ebuild.syntax
--- mc-4.6.1.orig/syntax/ebuild.syntax 1970-01-01 01:00:00.000000000 +0100
+++ mc-4.6.1.ebuild-syntax/syntax/ebuild.syntax 2008-04-27 13:05:35.000000000 +0200
@@ -0,0 +1,87 @@
+context default
+ keyword linestart HOMEPAGE brightcyan
+ keyword linestart DESCRIPTION brightcyan
+ keyword linestart SRC_URI brightcyan
+ keyword linestart LICENSE brightcyan
+ keyword linestart SLOT brightcyan
+ keyword linestart KEYWORDS brightcyan
+ keyword linestart IUSE brightcyan
+ keyword linestart RESTRICT brightcyan
+ keyword linestart DEPEND brightcyan
+ keyword linestart RDEPEND brightcyan
+ keyword linestart EAPI brightcyan
+ keyword linestart S brightcyan
+
+ keyword whole local yellow
+ keyword whole use yellow
+ keyword whole has_version yellow
+ keyword whole best_version yellow
+ keyword whole use_with yellow
+ keyword whole use_enable yellow
+ keyword whole keepdir yellow
+ keyword whole econf yellow
+ keyword whole einstall yellow
+ keyword whole die yellow
+ keyword whole einfo yellow
+ keyword whole elog yellow
+ keyword whole emake yellow
+ keyword whole eerror yellow
+ keyword whole epatch yellow
+ keyword whole ebegin yellow
+ keyword whole eend yellow
+ keyword whole ewarn yellow
+ keyword whole unpack yellow
+
+ keyword whole diropts yellow
+ keyword whole dobin yellow
+ keyword whole docinto yellow
+ keyword whole dodir yellow
+ keyword whole dodoc yellow
+ keyword whole doexe yellow
+ keyword whole dohard yellow
+ keyword whole dohtml yellow
+ keyword whole doinfo yellow
+ keyword whole doins yellow
+ keyword whole dolib.a yellow
+ keyword whole dolib.so yellow
+ keyword whole dolib yellow
+ keyword whole doman yellow
+ keyword whole dosbin yellow
+ keyword whole dosym yellow
+ keyword whole exeinto yellow
+ keyword whole exeopts yellow
+ keyword whole fowners yellow
+ keyword whole fperms yellow
+ keyword whole insinto yellow
+ keyword whole insopts yellow
+ keyword whole into yellow
+ keyword whole libopts yellow
+ keyword whole newbin yellow
+ keyword whole newdoc yellow
+ keyword whole newexe yellow
+ keyword whole newins yellow
+ keyword whole newman yellow
+ keyword whole newsbin yellow
+ keyword whole prepall yellow
+ keyword whole prepalldocs yellow
+ keyword whole prepallinfo yellow
+ keyword whole prepallman 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
More information about the mc-devel
mailing list