PageRenderTime 56ms CodeModel.GetById 48ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-3-pre5/modes/erlang.xml

#
XML | 264 lines | 261 code | 3 blank | 0 comment | 0 complexity | 082019f7cca4572582bb7f2448f35cb6 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="lineComment" VALUE="%"/>
  8	</PROPS>
  9
 10	<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE" ESCAPE="\">
 11		<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
 12
 13		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
 14			<BEGIN>"</BEGIN>
 15			<END>"</END>
 16		</SPAN>
 17
 18		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 19			<BEGIN>'</BEGIN>
 20			<END>'</END>
 21		</SPAN>
 22
 23		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 24		<MARK_PREVIOUS TYPE="LITERAL2" EXCLUDE_MATCH="TRUE">:</MARK_PREVIOUS>
 25
 26		<SEQ_REGEXP HASH_CHAR="$"
 27			TYPE="LITERAL3"
 28			AT_WORD_START="TRUE"
 29		>\$.\w*</SEQ_REGEXP>
 30
 31		<SEQ TYPE="LITERAL3">badarg</SEQ>
 32		<SEQ TYPE="LITERAL3">nocookie</SEQ>
 33		<SEQ TYPE="LITERAL3">false</SEQ>
 34		<SEQ TYPE="LITERAL3">true</SEQ>
 35
 36		<SEQ TYPE="OPERATOR">-&gt;</SEQ>
 37		<SEQ TYPE="OPERATOR">&lt;-</SEQ>
 38		<SEQ TYPE="OPERATOR">.</SEQ>
 39		<SEQ TYPE="OPERATOR">;</SEQ>
 40		<SEQ TYPE="OPERATOR">=</SEQ>
 41		<SEQ TYPE="OPERATOR">/</SEQ>
 42		<SEQ TYPE="OPERATOR">|</SEQ>
 43		<SEQ TYPE="OPERATOR">#</SEQ>
 44		<SEQ TYPE="OPERATOR">+</SEQ>
 45		<SEQ TYPE="OPERATOR">*</SEQ>
 46		<!--
 47		<SEQ TYPE="OPERATOR">(</SEQ>
 48		<SEQ TYPE="OPERATOR">)</SEQ>
 49		-->
 50		<SEQ TYPE="OPERATOR">:</SEQ>
 51		<SEQ TYPE="OPERATOR">{</SEQ>
 52		<SEQ TYPE="OPERATOR">}</SEQ>
 53		<SEQ TYPE="OPERATOR">[</SEQ>
 54		<SEQ TYPE="OPERATOR">]</SEQ>
 55		<SEQ TYPE="OPERATOR">,</SEQ>
 56		<SEQ TYPE="OPERATOR">?</SEQ>
 57		<SEQ TYPE="OPERATOR">!</SEQ>
 58
 59		<!-- div -->
 60		<SEQ_REGEXP HASH_CHAR="d" 
 61			TYPE="OPERATOR" 
 62			AT_WORD_START="TRUE"
 63		>\bdiv\b</SEQ_REGEXP>
 64		<!-- rem -->
 65		<SEQ_REGEXP HASH_CHAR="r" 
 66			TYPE="OPERATOR" 
 67			AT_WORD_START="TRUE"
 68		>\brem\b</SEQ_REGEXP>
 69		<!-- or -->
 70		<SEQ_REGEXP HASH_CHAR="o" 
 71			TYPE="OPERATOR" 
 72			AT_WORD_START="TRUE"
 73		>\bor\b</SEQ_REGEXP>
 74		<!-- xor -->
 75		<SEQ_REGEXP HASH_CHAR="x"
 76			TYPE="OPERATOR"
 77			AT_WORD_START="TRUE"
 78		>\bxor\b</SEQ_REGEXP>
 79		<!-- bor -->
 80		<SEQ_REGEXP HASH_CHAR="b"
 81			TYPE="OPERATOR"
 82			AT_WORD_START="TRUE"
 83		>\bbor\b</SEQ_REGEXP>
 84		<!-- bxor -->
 85		<SEQ_REGEXP HASH_CHAR="b"
 86			TYPE="OPERATOR"
 87			AT_WORD_START="TRUE"
 88		>\bbxor\b</SEQ_REGEXP>
 89		<!-- bsl -->
 90		<SEQ_REGEXP HASH_CHAR="b"
 91			TYPE="OPERATOR"
 92			AT_WORD_START="TRUE"
 93		>\bbsl\b</SEQ_REGEXP>
 94		<!-- bsr -->
 95		<SEQ_REGEXP HASH_CHAR="b"
 96			TYPE="OPERATOR"
 97			AT_WORD_START="TRUE"
 98		>\bbsr\b</SEQ_REGEXP>
 99		<!-- and -->
100		<SEQ_REGEXP HASH_CHAR="a"
101			TYPE="OPERATOR"
102			AT_WORD_START="TRUE"
103		>\band\b</SEQ_REGEXP>
104		<!-- band -->
105		<SEQ_REGEXP HASH_CHAR="b"
106			TYPE="OPERATOR"
107			AT_WORD_START="TRUE"
108		>\bband\b</SEQ_REGEXP>
109		<!-- not -->
110		<SEQ_REGEXP HASH_CHAR="n"
111			TYPE="OPERATOR"
112			AT_WORD_START="TRUE"
113		>\bnot\b</SEQ_REGEXP>
114		<!-- bnot -->
115		<SEQ_REGEXP HASH_CHAR="b"
116			TYPE="OPERATOR"
117			AT_WORD_START="TRUE"
118		>\bbnot\b</SEQ_REGEXP>
119
120		<KEYWORDS>
121			<!-- keywords -->
122			<KEYWORD1>after</KEYWORD1>
123			<KEYWORD1>begin</KEYWORD1>
124			<KEYWORD1>case</KEYWORD1>
125			<KEYWORD1>catch</KEYWORD1>
126			<KEYWORD1>cond</KEYWORD1>
127			<KEYWORD1>end</KEYWORD1>
128			<KEYWORD1>fun</KEYWORD1>
129			<KEYWORD1>if</KEYWORD1>
130			<KEYWORD1>let</KEYWORD1>
131			<KEYWORD1>of</KEYWORD1>
132			<KEYWORD1>query</KEYWORD1>
133			<KEYWORD1>receive</KEYWORD1>
134			<KEYWORD1>when</KEYWORD1>
135
136			<!-- built-in-functions BIFs -->
137			<KEYWORD2>abs</KEYWORD2>
138			<KEYWORD2>alive</KEYWORD2>
139			<KEYWORD2>apply</KEYWORD2>
140			<KEYWORD2>atom_to_list</KEYWORD2>
141			<KEYWORD2>binary_to_list</KEYWORD2>
142			<KEYWORD2>binary_to_term</KEYWORD2>
143			<KEYWORD2>concat_binary</KEYWORD2>
144			<KEYWORD2>date</KEYWORD2>
145			<KEYWORD2>disconnect_node</KEYWORD2>
146			<KEYWORD2>element</KEYWORD2>
147			<KEYWORD2>erase</KEYWORD2>
148			<KEYWORD2>exit</KEYWORD2>
149			<KEYWORD2>float</KEYWORD2>
150			<KEYWORD2>float_to_list</KEYWORD2>
151			<KEYWORD2>get</KEYWORD2>
152			<KEYWORD2>get_keys</KEYWORD2>
153			<KEYWORD2>group_leader</KEYWORD2>
154			<KEYWORD2>halt</KEYWORD2>
155			<KEYWORD2>hd</KEYWORD2>
156			<KEYWORD2>integer_to_list</KEYWORD2>
157			<KEYWORD2>is_alive</KEYWORD2>
158			<KEYWORD2>length</KEYWORD2>
159			<KEYWORD2>link</KEYWORD2>
160			<KEYWORD2>list_to_atom</KEYWORD2>
161			<KEYWORD2>list_to_binary</KEYWORD2>
162			<KEYWORD2>list_to_float</KEYWORD2>
163			<KEYWORD2>list_to_integer</KEYWORD2>
164			<KEYWORD2>list_to_pid</KEYWORD2>
165			<KEYWORD2>list_to_tuple</KEYWORD2>
166			<KEYWORD2>load_module</KEYWORD2>
167			<KEYWORD2>make_ref</KEYWORD2>
168			<KEYWORD2>monitor_node</KEYWORD2>
169			<KEYWORD2>node</KEYWORD2>
170			<KEYWORD2>nodes</KEYWORD2>
171			<KEYWORD2>now</KEYWORD2>
172			<KEYWORD2>open_port</KEYWORD2>
173			<KEYWORD2>pid_to_list</KEYWORD2>
174			<KEYWORD2>process_flag</KEYWORD2>
175			<KEYWORD2>process_info</KEYWORD2>
176			<KEYWORD2>process</KEYWORD2>
177			<KEYWORD2>put</KEYWORD2>
178			<KEYWORD2>register</KEYWORD2>
179			<KEYWORD2>registered</KEYWORD2>
180			<KEYWORD2>round</KEYWORD2>
181			<KEYWORD2>self</KEYWORD2>
182			<KEYWORD2>setelement</KEYWORD2>
183			<KEYWORD2>size</KEYWORD2>
184			<KEYWORD2>spawn</KEYWORD2>
185			<KEYWORD2>spawn_link</KEYWORD2>
186			<KEYWORD2>split_binary</KEYWORD2>
187			<KEYWORD2>statistics</KEYWORD2>
188			<KEYWORD2>term_to_binary</KEYWORD2>
189			<KEYWORD2>throw</KEYWORD2>
190			<KEYWORD2>time</KEYWORD2>
191			<KEYWORD2>tl</KEYWORD2>
192			<KEYWORD2>trunc</KEYWORD2>
193			<KEYWORD2>tuple_to_list</KEYWORD2>
194			<KEYWORD2>unlink</KEYWORD2>
195			<KEYWORD2>unregister</KEYWORD2>
196			<KEYWORD2>whereis</KEYWORD2>
197
198			<!-- other BIFs -->
199			<KEYWORD2>atom</KEYWORD2>
200			<KEYWORD2>binary</KEYWORD2>
201			<KEYWORD2>constant</KEYWORD2>
202			<KEYWORD2>function</KEYWORD2>
203			<KEYWORD2>integer</KEYWORD2>
204			<KEYWORD2>list</KEYWORD2>
205			<KEYWORD2>number</KEYWORD2>
206			<KEYWORD2>pid</KEYWORD2>
207			<KEYWORD2>ports</KEYWORD2>
208			<KEYWORD2>port_close</KEYWORD2>
209			<KEYWORD2>port_info</KEYWORD2>
210			<KEYWORD2>reference</KEYWORD2>
211			<KEYWORD2>record</KEYWORD2>
212
213			<!-- erlang:BIFs -->
214			<KEYWORD2>check_process_code</KEYWORD2>
215			<KEYWORD2>delete_module</KEYWORD2>
216			<KEYWORD2>get_cookie</KEYWORD2>
217			<KEYWORD2>hash</KEYWORD2>
218			<KEYWORD2>math</KEYWORD2>
219			<KEYWORD2>module_loaded</KEYWORD2>
220			<KEYWORD2>preloaded</KEYWORD2>
221			<KEYWORD2>processes</KEYWORD2>
222			<KEYWORD2>purge_module</KEYWORD2>
223			<KEYWORD2>set_cookie</KEYWORD2>
224			<KEYWORD2>set_node</KEYWORD2>
225
226			<!-- math functions -->
227			<KEYWORD2>acos</KEYWORD2>
228			<KEYWORD2>asin</KEYWORD2>
229			<KEYWORD2>atan</KEYWORD2>
230			<KEYWORD2>atan2</KEYWORD2>
231			<KEYWORD2>cos</KEYWORD2>
232			<KEYWORD2>cosh</KEYWORD2>
233			<KEYWORD2>exp</KEYWORD2>
234			<KEYWORD2>log</KEYWORD2>
235			<KEYWORD2>log10</KEYWORD2>
236			<KEYWORD2>pi</KEYWORD2>
237			<KEYWORD2>pow</KEYWORD2>
238			<KEYWORD2>power</KEYWORD2>
239			<KEYWORD2>sin</KEYWORD2>
240			<KEYWORD2>sinh</KEYWORD2>
241			<KEYWORD2>sqrt</KEYWORD2>
242			<KEYWORD2>tan</KEYWORD2>
243			<KEYWORD2>tanh</KEYWORD2>
244
245			<!-- directives -->
246			<KEYWORD3>-behaviour</KEYWORD3>
247			<KEYWORD3>-compile</KEYWORD3>
248			<KEYWORD3>-define</KEYWORD3>
249			<KEYWORD3>-else</KEYWORD3>
250			<KEYWORD3>-endif</KEYWORD3>
251			<KEYWORD3>-export</KEYWORD3>
252			<KEYWORD3>-file</KEYWORD3>
253			<KEYWORD3>-ifdef</KEYWORD3>
254			<KEYWORD3>-ifndef</KEYWORD3>
255			<KEYWORD3>-import</KEYWORD3>
256			<KEYWORD3>-include</KEYWORD3>
257			<KEYWORD3>-include_lib</KEYWORD3>
258			<KEYWORD3>-module</KEYWORD3>
259			<KEYWORD3>-record</KEYWORD3>
260			<KEYWORD3>-undef</KEYWORD3>
261		</KEYWORDS>
262
263	</RULES>
264</MODE>