summaryrefslogtreecommitdiffstats
path: root/misc/syntax/eiffel.syntax
blob: 66e8c2aa619fb6db6bd9f8d41bdbfe6eee7cd7c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Sytnax highlighting for Eiffel
# Daniel F Moisset - dmoisset@grulic.org.ar
# Based on mc's pascal.syntax

context default yellow

    keyword whole agent white
    keyword whole alias white
    keyword whole as white
    keyword whole check white
    keyword whole class white
    keyword whole create white
    keyword whole creation white
    keyword whole debug white
    keyword whole deferred white
    keyword whole do white
    keyword whole else white
    keyword whole elseif white
    keyword whole end white
    keyword whole ensure white
    keyword whole expanded white
    keyword whole export white
    keyword whole external white
    keyword whole feature white
    keyword whole from white
    keyword whole if white
    keyword whole is white
    keyword whole indexing white
    keyword whole inherit white
    keyword whole inspect white
    keyword whole invariant white
    keyword whole like white
    keyword whole local white
    keyword whole loop white
    keyword whole obsolete white
    keyword whole old white
    keyword whole once white
    keyword whole redefine white
    keyword whole reference white
    keyword whole rename white
    keyword whole require white
    keyword whole rescue white
    keyword whole retry white
    keyword whole select white
    keyword whole then white
    keyword whole undefine white
    keyword whole unique white
    keyword whole until white
    keyword whole variant white
    keyword whole when white

    keyword whole Current brightmagenta
    keyword whole Precursor brightmagenta
    keyword whole Result brightmagenta
    keyword whole Void brightmagenta

# prevents - keyword from interfering with comment
    keyword -- lightgray

    keyword := brightcyan
    keyword ?= brightcyan
    keyword ! brightcyan
    keyword : brightcyan
    keyword ; brightcyan
    keyword ( brightcyan
    keyword ) brightcyan
    keyword [ brightcyan
    keyword ] brightcyan

    keyword {*} brightred

    keyword \+ cyan
    keyword - cyan
    keyword \* cyan
    keyword / cyan
    keyword > cyan
    keyword < cyan
    keyword = cyan
    keyword ^ cyan
    keyword \\ cyan
    keyword @ cyan
    keyword | cyan
    keyword whole and cyan
    keyword whole implies cyan
    keyword whole not cyan
    keyword whole xor cyan
    keyword whole or cyan

# Uncomment this to highlight tabs and trailing spaces
#    keyword \t yellow red
#    keyword \s\[\s\]\n yellow red

# Comments
context exclusive -- \n    lightgray
    keyword `*' brown

# Strings and characters
context " "    green
    keyword %N brightgreen
    keyword %R brightgreen
    keyword %U brightgreen
    keyword %" brightgreen
    keyword %' brightgreen
    keyword %% brightgreen
    keyword %/\[0123456789\]/ brightgreen

context ' '    green
    keyword %N brightgreen
    keyword %R brightgreen
    keyword %U brightgreen
    keyword %" brightgreen
    keyword %' brightgreen
    keyword %% brightgreen
    keyword %/\[0123456789\]/ brightgreen