* syntax/eiffel.syntax: Add syntax highlighting rules for the

Eiffel programming language.
	* syntax/Syntax: Bind *.e with eiffel.syntax.
	* syntax/Makefile.am: Added syntax.eiffel.

	From Daniel F Moisset <dmoisset grulic org ar>
This commit is contained in:
Roland Illig 2004-10-16 12:59:26 +00:00
parent 8d50b2240a
commit 10dbca29ab
4 changed files with 128 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2004-10-16 Roland Illig <roland.illig@gmx.de>
* syntax/eiffel.syntax: Add syntax highlighting rules for the
Eiffel programming language.
* syntax/Syntax: Bind *.e with eiffel.syntax.
* syntax/Makefile.am: Added syntax.eiffel.
From Daniel F Moisset <dmoisset grulic org ar>
2004-10-12 Pavel S. Shirshov <pavelsh@mail.ru>
* syntax/sql.syntax: Improve sql.syntax file and added several

View File

@ -8,6 +8,7 @@ syntax_DATA = \
changelog.syntax \
diff.syntax \
dos.syntax \
eiffel.syntax \
fortran.syntax \
html.syntax \
java.syntax \

View File

@ -20,6 +20,9 @@
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

115
syntax/eiffel.syntax Normal file
View File

@ -0,0 +1,115 @@
# Sytnax highlighting for Eiffel
# Daniel F Moisset - dmoisset@grulic.org.ar
# Based on mc's pascal.syntax
context default yellow/24
keyword whole agent white/24
keyword whole alias white/24
keyword whole as white/24
keyword whole check white/24
keyword whole class white/24
keyword whole create white/24
keyword whole creation white/24
keyword whole debug white/24
keyword whole deferred white/24
keyword whole do white/24
keyword whole else white/24
keyword whole elseif white/24
keyword whole end white/24
keyword whole ensure white/24
keyword whole expanded white/24
keyword whole export white/24
keyword whole external white/24
keyword whole feature white/24
keyword whole from white/24
keyword whole if white/24
keyword whole is white/24
keyword whole indexing white/24
keyword whole inherit white/24
keyword whole inspect white/24
keyword whole invariant white/24
keyword whole like white/24
keyword whole local white/24
keyword whole loop white/24
keyword whole obsolete white/24
keyword whole old white/24
keyword whole once white/24
keyword whole redefine white/24
keyword whole reference white/24
keyword whole rename white/24
keyword whole require white/24
keyword whole rescue white/24
keyword whole retry white/24
keyword whole select white/24
keyword whole then white/24
keyword whole undefine white/24
keyword whole unique white/24
keyword whole until white/24
keyword whole variant white/24
keyword whole when white/24
keyword whole Current brightmagenta/23
keyword whole Precursor brightmagenta/23
keyword whole Result brightmagenta/23
keyword whole Void brightmagenta/23
# prevents - keyword from interfering with comment
keyword -- lightgray/22
keyword := brightcyan/6
keyword ?= brightcyan/6
keyword ! brightcyan/6
keyword : brightcyan/6
keyword ; brightcyan/6
keyword ( brightcyan/6
keyword ) brightcyan/6
keyword [ brightcyan/6
keyword ] brightcyan/6
keyword {*} brightred/6
keyword \+ cyan/14
keyword - cyan/14
keyword \* cyan/14
keyword / cyan/14
keyword > cyan/14
keyword < cyan/14
keyword = cyan/14
keyword ^ cyan/14
keyword \\ cyan/14
keyword @ cyan/14
keyword | cyan/14
keyword whole and cyan/14
keyword whole implies cyan/14
keyword whole not cyan/14
keyword whole xor cyan/14
keyword whole or cyan/14
# Uncomment this to highlight tabs and trailing spaces
# keyword \t yellow/24 red/6
# keyword \s\[\s\]\n yellow/24 red/6
# Comments
context exclusive -- \n lightgray/22
keyword `*' brown/22
# Strings and characters
context " " green/green
keyword %N brightgreen/6
keyword %R brightgreen/6
keyword %U brightgreen/6
keyword %" brightgreen/6
keyword %' brightgreen/6
keyword %% brightgreen/6
keyword %/\[0123456789\]/ brightgreen/6
context ' ' green/green
keyword %N brightgreen/6
keyword %R brightgreen/6
keyword %U brightgreen/6
keyword %" brightgreen/6
keyword %' brightgreen/6
keyword %% brightgreen/6
keyword %/\[0123456789\]/ brightgreen/6