Line 0
Link Here
|
|
|
1 |
# |
2 |
# Erlang syntax highlighting |
3 |
# |
4 |
# Author: Sergey Shilov ( hsv@altlinux.org ) |
5 |
# Version: 5 May, 2009 |
6 |
# |
7 |
|
8 |
define Comments brown |
9 |
define Keywords white |
10 |
define Symbols yellow |
11 |
define Variables gray blue |
12 |
define Functions brightcyan |
13 |
define Numbers green |
14 |
define Strings brightred |
15 |
define Preprocessor red |
16 |
define Operators brightgreen |
17 |
define Brackets brightcyan |
18 |
define Terms brightmagenta |
19 |
|
20 |
|
21 |
wholechars 0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz |
22 |
|
23 |
# Reserved Words |
24 |
|
25 |
context default |
26 |
keyword whole apply Keywords |
27 |
keyword whole afte Keywords |
28 |
keyword whole and Keywords |
29 |
keyword whole andalso Keywords |
30 |
keyword whole band Keywords |
31 |
keyword whole begin Keywords |
32 |
keyword whole bnot Keywords |
33 |
keyword whole bor Keywords |
34 |
keyword whole bsl Keywords |
35 |
keyword whole bsr Keywords |
36 |
keyword whole bxor Keywords |
37 |
keyword whole case Keywords |
38 |
keyword whole catch Keywords |
39 |
keyword whole cond Keywords |
40 |
keyword whole div Keywords |
41 |
keyword whole end Keywords |
42 |
keyword whole fun Keywords |
43 |
keyword whole if Keywords |
44 |
keyword whole let Keywords |
45 |
keyword whole not Keywords |
46 |
keyword whole of Keywords |
47 |
keyword whole or Keywords |
48 |
keyword whole orelse Keywords |
49 |
keyword whole query Keywords |
50 |
keyword whole receive Keywords |
51 |
keyword whole rem Keywords |
52 |
keyword whole try Keywords |
53 |
keyword whole when Keywords |
54 |
keyword whole xor Keywords |
55 |
|
56 |
# Declarations |
57 |
keyword whole -include Preprocessor |
58 |
keyword whole -include_lib Preprocessor |
59 |
keyword whole -define Preprocessor |
60 |
keyword whole -behaviour Preprocessor |
61 |
keyword whole -module Preprocessor |
62 |
keyword whole -compile Preprocessor |
63 |
keyword whole -export Preprocessor |
64 |
keyword whole -record Preprocessor |
65 |
keyword whole -author Preprocessor |
66 |
|
67 |
# Allmatch pattern symbol |
68 |
keyword whole _ Keywords |
69 |
|
70 |
keyword whole -> Operators |
71 |
keyword ; Operators |
72 |
keyword , Operators |
73 |
|
74 |
|
75 |
# "Functions" |
76 |
keyword wholeleft \{:abcdefghijklmnopqrstuvwxyz\}+( Functions |
77 |
keyword ) Functions |
78 |
|
79 |
# Terms |
80 |
keyword whole \{abcdefghijklmnopqrstuvwxyz\}+ Terms |
81 |
|
82 |
|
83 |
# "Brackets" for |
84 |
# Expressions |
85 |
keyword ( Brackets |
86 |
keyword ) Brackets |
87 |
# Tuples |
88 |
keyword { Brackets |
89 |
keyword } Brackets |
90 |
# Lists |
91 |
keyword [ Brackets |
92 |
keyword ] Brackets |
93 |
# Bit strings and binaries |
94 |
keyword \<\< Brackets |
95 |
keyword \>\> Brackets |
96 |
|
97 |
|
98 |
|
99 |
# "Symbols" |
100 |
keyword whole \=\= Symbols |
101 |
keyword whole \=\< Symbols |
102 |
keyword whole \=\> Symbols |
103 |
keyword whole \/\> Symbols |
104 |
keyword whole \+\+ Symbols |
105 |
keyword whole \-\- Symbols |
106 |
keyword whole \|\| Symbols |
107 |
keyword \| Symbols |
108 |
keyword = Symbols |
109 |
keyword \> Symbols |
110 |
keyword \< Symbols |
111 |
keyword ! Symbols |
112 |
keyword : Symbols |
113 |
keyword \/ Symbols |
114 |
keyword \* Symbols |
115 |
keyword \+ Symbols |
116 |
keyword \- Symbols |
117 |
|
118 |
keyword . Symbols |
119 |
|
120 |
# "Variables" |
121 |
|
122 |
keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}\{_@abcdefghijklmnopqrstuvwxyz\}+ Variables |
123 |
keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}+ Variables |
124 |
keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\} Variables |
125 |
|
126 |
# "Numbers" |
127 |
# "ASCII char" integer value ( $A ) '$\ '-? |
128 |
keyword wholeright \$\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_@abcdefghijklmnopqrstuvwxyz\} Numbers |
129 |
|
130 |
wholechars #-.0123456789abcdefABCDEF |
131 |
# -42 |
132 |
keyword whole \{\-\}\{0123456789\}+ Numbers |
133 |
keyword whole \{0123456789\}+ Numbers |
134 |
# -4.2333 |
135 |
keyword whole \{0123456789\}+\{\.\}\{0123456789\}+ Numbers |
136 |
keyword whole \{\-\}\{0123456789\}+\{\.\}\{0123456789\}+ Numbers |
137 |
# 2.3e3. |
138 |
keyword whole \{0123456789\}+\{\.\}\{0123456789\}+e\{0123456789\}+ Numbers |
139 |
keyword whole \{\-\}\{0123456789\}+\{\.\}\{0123456789\}+e\{0123456789\}+ Numbers |
140 |
# 2.3e-3 |
141 |
keyword whole \{0123456789\}+\{\.\}\{0123456789\}+-e\{0123456789\}+ Numbers |
142 |
keyword whole \{\-\}\{0123456789\}+\{\.\}\{0123456789\}+-e\{0123456789\}+ Numbers |
143 |
# 2#101 16#1f |
144 |
keyword whole \{23456789\}\#\{0123456789abcdefABCDEF\}+ Numbers |
145 |
keyword whole \{-\}\{23456789\}\#\{0123456789abcdefABCDEF\}+ Numbers |
146 |
keyword whole \{1\}\{0123456}\#\{0123456789abcdefABCDEF\}+ Numbers |
147 |
keyword whole \{2\}\{0123456789}\#\{0123456789abcdefABCDEF\}+ Numbers |
148 |
keyword whole \{3\}\{012}\#\{0123456789abcdefABCDEF\}+ Numbers |
149 |
keyword whole \{-\}\{1\}\{0123456}\#\{0123456789abcdefABCDEF\}+ Numbers |
150 |
keyword whole \{-\}\{2\}\{0123456789}\#\{0123456789abcdefABCDEF\}+ Numbers |
151 |
keyword whole \{-\}\{3\}\{012}\#\{0123456789abcdefABCDEF\}+ Numbers |
152 |
|
153 |
# Comments |
154 |
context % \n Comments |
155 |
|
156 |
# Strings |
157 |
|
158 |
context " " Strings |
159 |
keyword \\" Strings |
160 |
keyword \\\\ Strings |
161 |
|
162 |
# Terms with spaces @ and _ chars |
163 |
context ' ' Terms |
164 |
keyword \\' Terms |
165 |
keyword \\\\ Terms |
166 |
|