PageRenderTime 107ms CodeModel.GetById 101ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/modes/nqc.xml

#
XML | 219 lines | 214 code | 3 blank | 2 comment | 0 complexity | a595f979c16605768a99130da193fc3b MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6	<PROPS>
  7		<PROPERTY NAME="commentStart" VALUE="/*" />
  8		<PROPERTY NAME="commentEnd" VALUE="*/" />
  9		<PROPERTY NAME="lineComment" VALUE="//" />
 10		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 11
 12		<!-- Auto indent -->
 13		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 14		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 15		<PROPERTY NAME="indentNextLine"
 16			VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
 17		<!-- set this to 'true' if you want to use GNU coding style -->
 18		<PROPERTY NAME="doubleBracketIndent" VALUE="false" />
 19		<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
 20	</PROPS>
 21	<RULES ESCAPE="\"
 22		IGNORE_CASE="FALSE"
 23		HIGHLIGHT_DIGITS="TRUE"
 24		DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?)">
 25
 26		<!-- C style comment -->
 27		<SPAN TYPE="COMMENT1">
 28			<BEGIN>/*</BEGIN>
 29			<END>*/</END>
 30		</SPAN>
 31
 32		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 33			<BEGIN>"</BEGIN>
 34			<END>"</END>
 35		</SPAN>
 36		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 37			<BEGIN>'</BEGIN>
 38			<END>'</END>
 39		</SPAN>
 40
 41		<!-- preprocessor statements -->
 42		<EOL_SPAN TYPE="KEYWORD2">#</EOL_SPAN>
 43
 44		<EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
 45		<SEQ TYPE="OPERATOR">=</SEQ>
 46		<SEQ TYPE="OPERATOR">!</SEQ>
 47		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 48		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 49		<SEQ TYPE="OPERATOR">+</SEQ>
 50		<SEQ TYPE="OPERATOR">-</SEQ>
 51		<SEQ TYPE="OPERATOR">/</SEQ>
 52
 53		<SEQ TYPE="OPERATOR">*</SEQ>
 54		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 55		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 56		<SEQ TYPE="OPERATOR">%</SEQ>
 57		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 58		<SEQ TYPE="OPERATOR">|</SEQ>
 59		<SEQ TYPE="OPERATOR">^</SEQ>
 60		<SEQ TYPE="OPERATOR">~</SEQ>
 61		<SEQ TYPE="OPERATOR">}</SEQ>
 62		<SEQ TYPE="OPERATOR">{</SEQ>
 63		<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
 64			EXCLUDE_MATCH="TRUE"
 65			TYPE="LABEL">:</MARK_PREVIOUS>
 66
 67		<!-- Function calls -->
 68		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 69
 70		<KEYWORDS>
 71			<KEYWORD1>__event_src</KEYWORD1>
 72			<KEYWORD1>__sensor</KEYWORD1>
 73			<KEYWORD1>__type</KEYWORD1>
 74			<KEYWORD1>abs</KEYWORD1>
 75			<KEYWORD1>aquire</KEYWORD1>
 76			<KEYWORD1>catch</KEYWORD1>
 77			<KEYWORD1>const</KEYWORD1>
 78			<KEYWORD1>break</KEYWORD1>
 79			<KEYWORD1>case</KEYWORD1>
 80			<KEYWORD1>continue</KEYWORD1>
 81			<KEYWORD1>default</KEYWORD1>
 82			<KEYWORD1>do</KEYWORD1>
 83			<KEYWORD1>else</KEYWORD1>
 84			<KEYWORD1>for</KEYWORD1>
 85			<KEYWORD1>monitor</KEYWORD1>
 86			<KEYWORD1>if</KEYWORD1>
 87			<KEYWORD1>return</KEYWORD1>
 88			<KEYWORD1>repeat</KEYWORD1>
 89			<KEYWORD1>sign</KEYWORD1>
 90			<KEYWORD1>start</KEYWORD1>
 91			<KEYWORD1>stop</KEYWORD1>
 92			<KEYWORD1>sub</KEYWORD1>
 93			<KEYWORD1>switch</KEYWORD1>
 94			<KEYWORD1>task</KEYWORD1>
 95			<KEYWORD1>while</KEYWORD1>
 96
 97			<KEYWORD2>asm</KEYWORD2>
 98			<KEYWORD2>inline</KEYWORD2>
 99
100			<KEYWORD3>int</KEYWORD3>
101			<KEYWORD3>void</KEYWORD3>
102
103			<LITERAL2>true</LITERAL2>
104			<LITERAL2>false</LITERAL2>
105			<LITERAL2>NULL</LITERAL2>
106
107			<LITERAL2>SENSOR_1</LITERAL2>
108			<LITERAL2>SENSOR_2</LITERAL2>
109			<LITERAL2>SENSOR_3</LITERAL2>
110
111			<LITERAL2>SENSOR_TYPE_NONE</LITERAL2>
112			<LITERAL2>SENSOR_TYPE_TOUCH</LITERAL2>
113			<LITERAL2>SENSOR_TYPE_TEMPERATURE</LITERAL2>
114			<LITERAL2>SENSOR_TYPE_LIGHT</LITERAL2>
115			<LITERAL2>SENSOR_TYPE_ROTATION</LITERAL2>
116
117			<LITERAL2>SENSOR_MODE_RAW</LITERAL2>
118			<LITERAL2>SENSOR_MODE_BOOL</LITERAL2>
119			<LITERAL2>SENSOR_MODE_EDGE</LITERAL2>
120			<LITERAL2>SENSOR_MODE_PULSE</LITERAL2>
121			<LITERAL2>SENSOR_MODE_PERCENT</LITERAL2>
122			<LITERAL2>SENSOR_MODE_FAHRENHEIT</LITERAL2>
123			<LITERAL2>SENSOR_MODE_CELSIUS</LITERAL2>
124			<LITERAL2>SENSOR_MODE_ROTATION</LITERAL2>
125
126			<LITERAL2>SENSOR_TOUCH</LITERAL2>
127			<LITERAL2>SENSOR_LIGHT</LITERAL2>
128			<LITERAL2>SENSOR_EDGE</LITERAL2>
129			<LITERAL2>SENSOR_PULSE</LITERAL2>
130			<LITERAL2>SENSOR_FAHRENHEIT</LITERAL2>
131			<LITERAL2>SENSOR_CELSIUS</LITERAL2>
132			<LITERAL2>SENSOR_ROTATION</LITERAL2>
133
134			<LITERAL2>OUT_A</LITERAL2>
135			<LITERAL2>OUT_B</LITERAL2>
136			<LITERAL2>OUT_C</LITERAL2>
137
138			<LITERAL2>OUT_OFF</LITERAL2>
139			<LITERAL2>OUT_ON</LITERAL2>
140			<LITERAL2>OUT_FLOAT</LITERAL2>
141
142			<LITERAL2>OUT_FWD</LITERAL2>
143			<LITERAL2>OUT_REV</LITERAL2>
144			<LITERAL2>OUT_TOOGLE</LITERAL2>
145
146			<LITERAL2>OUT_FULL</LITERAL2>
147			<LITERAL2>OUT_HALF</LITERAL2>
148			<LITERAL2>OUT_LOW</LITERAL2>
149
150			<LITERAL2>SOUND_CLICK</LITERAL2>
151			<LITERAL2>SOUND_DOUBLE_BEEP</LITERAL2>
152			<LITERAL2>SOUND_DOWN</LITERAL2>
153			<LITERAL2>SOUND_UP</LITERAL2>
154			<LITERAL2>SOUND_LOW_BEEP</LITERAL2>
155			<LITERAL2>SOUND_FAST_UP</LITERAL2>
156			
157			<LITERAL2>DISPLAY_WATCH</LITERAL2>
158			<LITERAL2>DISPLAY_OUT_A</LITERAL2>
159			<LITERAL2>DISPLAY_OUT_B</LITERAL2>
160			<LITERAL2>DISPLAY_OUT_C</LITERAL2>
161			<LITERAL2>DISPLAY_SENSOR_1</LITERAL2>
162			<LITERAL2>DISPLAY_SENSOR_2</LITERAL2>
163			<LITERAL2>DISPLAY_SENSOR_3</LITERAL2>
164			
165			<LITERAL2>TX_POWER_LO</LITERAL2>
166			<LITERAL2>TX_POWER_HI</LITERAL2>
167
168			<LITERAL2>SERIAL_COMM_DEFAULT</LITERAL2>
169			<LITERAL2>SERIAL_COMM_4800</LITERAL2>
170			<LITERAL2>SERIAL_COMM_DUTY25</LITERAL2>
171			<LITERAL2>SERIAL_COMM_76KHZ</LITERAL2>
172
173			<LITERAL2>SERIAL_PACKET_PREAMBLE</LITERAL2>
174			<LITERAL2>SERIAL_PACKET_DEFAULT</LITERAL2>
175			<LITERAL2>SERIAL_PACKET_NEGATED</LITERAL2>
176			<LITERAL2>SERIAL_PACKET_CHECKSUM</LITERAL2>
177			<LITERAL2>SERIAL_PACKET_RCX</LITERAL2>
178			<LITERAL2>SERIAL_PACKET_</LITERAL2>
179
180			<LITERAL2>ACQUIRE_OUT_A</LITERAL2>
181			<LITERAL2>ACQUIRE_OUT_B</LITERAL2>
182			<LITERAL2>ACQUIRE_OUT_C</LITERAL2>
183			<LITERAL2>ACQUIRE_SOUND</LITERAL2>
184			<LITERAL2>ACQUIRE_USER_1</LITERAL2>
185			<LITERAL2>ACQUIRE_USER_2</LITERAL2>
186			<LITERAL2>ACQUIRE_USER_3</LITERAL2>
187			<LITERAL2>ACQUIRE_USER_4</LITERAL2>
188
189			<LITERAL2>EVENT_TYPE_PRESSED</LITERAL2>
190			<LITERAL2>EVENT_TYPE_RELEASED</LITERAL2>
191			<LITERAL2>EVENT_TYPE_PULSE</LITERAL2>
192			<LITERAL2>EVENT_TYPE_EDGE</LITERAL2>
193			<LITERAL2>EVENT_TYPE_FASTCHANGE</LITERAL2>
194			<LITERAL2>EVENT_TYPE_LOW</LITERAL2>
195			<LITERAL2>EVENT_TYPE_NORMAL</LITERAL2>
196			<LITERAL2>EVENT_TYPE_HIGH</LITERAL2>
197			<LITERAL2>EVENT_TYPE_CLICK</LITERAL2>
198			<LITERAL2>EVENT_TYPE_DOUBLECLICK</LITERAL2>
199			<LITERAL2>EVENT_TYPE_MESSAGE</LITERAL2>
200
201			<LITERAL2>EVENT_1_PRESSED</LITERAL2>
202			<LITERAL2>EVENT_1_RELEASED</LITERAL2>
203			<LITERAL2>EVENT_2_PRESSED</LITERAL2>
204			<LITERAL2>EVENT_2_RELEASED</LITERAL2>
205			<LITERAL2>EVENT_LIGHT_HIGH</LITERAL2>
206			<LITERAL2>EVENT_LIGHT_NORMAL</LITERAL2>
207			<LITERAL2>EVENT_LIGHT_LOW</LITERAL2>
208			<LITERAL2>EVENT_LIGHT_CLICK</LITERAL2>
209			<LITERAL2>EVENT_LIGHT_DOUBLECLICK</LITERAL2>
210			<LITERAL2>EVENT_COUNTER_0</LITERAL2>
211			<LITERAL2>EVENT_COUNTER_1</LITERAL2>
212			<LITERAL2>EVENT_TIMER_0</LITERAL2>
213			<LITERAL2>EVENT_TIMER_1</LITERAL2>
214			<LITERAL2>EVENT_TIMER_2</LITERAL2>
215			<LITERAL2>EVENT_MESSAGE</LITERAL2>
216
217		</KEYWORDS>
218	</RULES>
219</MODE>