PageRenderTime 82ms CodeModel.GetById 77ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

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