10 {
12
13
14
15
16
17
18 $this->nocase = "0";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22
23
24 $this->colours = array("blue", "purple", "gray", "brown", "blue");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29
30
31 $this->indent = array("{");
32 $this->unindent = array("}");
33
34
35
36 $this->stringchars = array("\"", "'");
37 $this->delimiters = array("~", "!", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
38 $this->escchar = "";
39
40
41
42 $this->linecommenton = array("//");
43 $this->blockcommenton = array("/*");
44 $this->blockcommentoff = array("*/");
45
46
47
48 $this->keywords = array(
49 "used" => "",
50 "in" => "",
51 "programming" => "",
52 "embedded" => "",
53 "Neuron" => "",
54 "(MC3150,3120)" => "",
55 "chips" => "",
56 "for" => "1",
57 "distributed" => "",
58 "control" => "",
59 "applications" => "",
60 "auto" => "1",
61 "break" => "1",
62 "case" => "1",
63 "char" => "1",
64 "const" => "1",
65 "continue" => "1",
66 "default" => "1",
67 "do" => "1",
68 "double" => "1",
69 "else" => "1",
70 "enum" => "1",
71 "extern" => "1",
72 "float" => "1",
73 "float_type" => "1",
74 "goto" => "1",
75 "if" => "1",
76 "int" => "1",
77 "long" => "1",
78 "msg_tag" => "1",
79 "mtimer" => "1",
80 "network" => "1",
81 "quad" => "1",
82 "register" => "1",
83 "return" => "1",
84 "short" => "1",
85 "signed" => "1",
86 "sizeof" => "1",
87 "static" => "1",
88 "stimer" => "1",
89 "struct" => "1",
90 "switch" => "1",
91 "s32_type" => "1",
92 "typedef" => "1",
93 "union" => "1",
94 "unsigned" => "1",
95 "void" => "1",
96 "volatile" => "1",
97 "when" => "1",
98 "while" => "1",
99 "#define" => "1",
100 "#error" => "1",
101 "#include" => "1",
102 "#elif" => "1",
103 "#if" => "1",
104 "#line" => "1",
105 "#else" => "1",
106 "#ifdef" => "1",
107 "#pragma" => "1",
108 "#endif" => "1",
109 "#ifndef" => "1",
110 "#undef" => "1",
111 "addr_table_index" => "2",
112 "bcd2bin" => "2",
113 "bin2bcd" => "2",
114 "eeprom_memcpy" => "2",
115 "flush_completes" => "2",
116 "get_tick_count" => "2",
117 "high_byte" => "2",
118 "io_changes" => "2",
119 "io_change_init" => "2",
120 "io_in" => "2",
121 "io_in_ready" => "2",
122 "io_in_request" => "2",
123 "io_out" => "2",
124 "io_out_ready" => "2",
125 "io_out_request" => "2",
126 "io_preserve_input" => "2",
127 "io_select" => "2",
128 "io_set_clock" => "2",
129 "io_set_direction" => "2",
130 "io_update_occurs" => "2",
131 "is_bound" => "2",
132 "low_byte" => "2",
133 "make_long" => "2",
134 "msg_alloc" => "2",
135 "msg_alloc_priority" => "2",
136 "msg_cancel" => "2",
137 "msg_completes" => "2",
138 "msg_fails" => "2",
139 "msg_free" => "2",
140 "msg_receive" => "2",
141 "msg_send" => "2",
142 "msg_succeeds" => "2",
143 "nv_table_index" => "2",
144 "poll" => "2",
145 "propagate" => "2",
146 "reset" => "2",
147 "resp_alloc" => "2",
148 "resp_arrives" => "2",
149 "resp_cancel" => "2",
150 "resp_free" => "2",
151 "resp_receive" => "2",
152 "resp_send" => "2",
153 "sleep" => "2",
154 "swap_bytes" => "2",
155 "timer_expires" => "2",
156 "touch_bit" => "2",
157 "touch_byte" => "2",
158 "touch_first" => "2",
159 "touch_next" => "2",
160 "touch_reset" => "2",
161 "wink" => "2",
162 "ackd" => "3",
163 "activate_service_led" => "3",
164 "auth" => "3",
165 "authenticated" => "3",
166 "baud" => "3",
167 "bind" => "3",
168 "bit" => "3",
169 "bitshift" => "3",
170 "byte" => "3",
171 "clock" => "3",
172 "clockedge" => "3",
173 "config" => "3",
174 "config_data" => "3",
175 "ded" => "3",
176 "dualslope" => "3",
177 "eeprom" => "3",
178 "edgedivide" => "3",
179 "edgelog" => "3",
180 "far" => "3",
181 "fastaccess" => "3",
182 "frequency" => "3",
183 "infrared" => "3",
184 "input" => "3",
185 "input_is_new" => "3",
186 "input_value" => "3",
187 "invert" => "3",
188 "i2c" => "3",
189 "IO_0" => "3",
190 "IO_1" => "3",
191 "IO_2" => "3",
192 "IO_3" => "3",
193 "IO_4" => "3",
194 "IO_5" => "3",
195 "IO_6" => "3",
196 "IO_7" => "3",
197 "IO_8" => "3",
198 "IO_9" => "3",
199 "kbaud" => "3",
200 "leveldetect" => "3",
201 "magcard" => "3",
202 "magtrack1" => "3",
203 "master" => "3",
204 "max_rate_est" => "3",
205 "msg_arrives" => "3",
206 "msg_in" => "3",
207 "msg_out" => "3",
208 "msg_tag_index" => "3",
209 "mux" => "3",
210 "muxbus" => "3",
211 "neurowire" => "3",
212 "nibble" => "3",
213 "nonbind" => "3",
214 "nonconfig" => "3",
215 "nonpriority" => "3",
216 "numbits" => "3",
217 "nv_array_index" => "3",
218 "nv_in_addr" => "3",
219 "nv_in_index" => "3",
220 "offchip" => "3",
221 "offline" => "3",
222 "onchip" => "3",
223 "oneshot" => "3",
224 "output" => "3",
225 "parallel" => "3",
226 "period" => "3",
227 "polled" => "3",
228 "priority" => "3",
229 "pulsecount" => "3",
230 "pulsewidth" => "3",
231 "quadrature" => "3",
232 "ram" => "3",
233 "rate_est" => "3",
234 "read_only_data" => "3",
235 "read_only_data2" => "3",
236 "resp_in" => "3",
237 "resp_out" => "3",
238 "select" => "3",
239 "serial" => "3",
240 "slave" => "3",
241 "slave_b" => "3",
242 "sync" => "3",
243 "synchronized" => "3",
244 "system" => "3",
245 "totalcount" => "3",
246 "touch" => "3",
247 "triac" => "3",
248 "triggeredcount" => "3",
249 "unackd" => "3",
250 "unackd_rpt" => "3",
251 "uninit" => "3",
252 "wiegand" => "3",
253 "SNVT_address" => "4",
254 "SNVT_alarm" => "4",
255 "SNVT_amp" => "4",
256 "SNVT_amp_f" => "4",
257 "SNVT_amp_mil" => "4",
258 "SNVT_angle" => "4",
259 "SNVT_angle_deg" => "4",
260 "SNVT_angle_f" => "4",
261 "SNVT_angle_vel" => "4",
262 "SNVT_angle_vel_f" => "4",
263 "SNVT_area" => "4",
264 "SNVT_btu_f" => "4",
265 "SNVT_btu_kilo" => "4",
266 "SNVT_btu_mega" => "4",
267 "SNVT_char_ascii" => "4",
268 "SNVT_chlr_status" => "4",
269 "SNVT_color" => "4",
270 "SNVT_config_src" => "4",
271 "SNVT_count" => "4",
272 "SNVT_count_f" => "4",
273 "SNVT_count_inc" => "4",
274 "SNVT_count_inc_f" => "4",
275 "SNVT_currency" => "4",
276 "SNVT_date_cal" => "4",
277 "SNVT_date_day" => "4",
278 "SNVT_date_time" => "4",
279 "SNVT_defr_mode" => "4",
280 "SNVT_defr_state" => "4",
281 "SNVT_term" => "4",
282 "SNVT_density" => "4",
283 "SNVT_density_f" => "4",
284 "SNVT_earth_pos" => "4",
285 "SNVT_elapsed_tm" => "4",
286 "SNVT_elec_kwhr" => "4",
287 "SNVT_elec_whr" => "4",
288 "SNVT_elec_whr_f" => "4",
289 "SNVT_evap_state" => "4",
290 "SNVT_file_pos" => "4",
291 "SNVT_file_req" => "4",
292 "SNVT_file_status" => "4",
293 "SNVT_fire_indcte" => "4",
294 "SNVT_fire_init" => "4",
295 "SNVT_fire_test" => "4",
296 "SNVT_flow" => "4",
297 "SNVT_flow_f" => "4",
298 "SNVT_flow_mil" => "4",
299 "SNVT_freq_f" => "4",
300 "SNVT_freq_hz" => "4",
301 "SNVT_freq_kilohz" => "4",
302 "SNVT_freq_milhz" => "4",
303 "SNVT_grammage" => "4",
304 "SNVT_grammage_f" => "4",
305 "SNVT_hvac_emerg" => "4",
306 "SNVT_hvac_mode" => "4",
307 "SNVT_hvac_overid" => "4",
308 "SNVT_hvac_status" => "4",
309 "SNVT_ISO_7811" => "4",
310 "SNVT_length" => "4",
311 "SNVT_length_f" => "4",
312 "SNVT_length_kilo" => "4",
313 "SNVT_length_micr" => "4",
314 "SNVT_length_mil" => "4",
315 "SNVT_lev_cont" => "4",
316 "SNVT_lev_cont_f" => "4",
317 "SNVT_lev_disc" => "4",
318 "SNVT_lev_percent" => "4",
319 "SNVT_lux" => "4",
320 "SNVT_magcard" => "4",
321 "SNVT_mass" => "4",
322 "SNVT_mass_f" => "4",
323 "SNVT_mass_kilo" => "4",
324 "SNVT_mass_mega" => "4",
325 "SNVT_mass_mil" => "4",
326 "SNVT_muldiv" => "4",
327 "SNVT_multiplier" => "4",
328 "SNVT_obj_request" => "4",
329 "SNVT_obj_status" => "4",
330 "SNVT_occupancy" => "4",
331 "SNVT_override" => "4",
332 "SNVT_ph" => "4",
333 "SNVT_ph_f" => "4",
334 "SNVT_power" => "4",
335 "SNVT_power_f" => "4",
336 "SNVT_power_kilo" => "4",
337 "SNVT_ppm" => "4",
338 "SNVT_ppm_f" => "4",
339 "SNVT_preset" => "4",
340 "SNVT_press" => "4",
341 "SNVT_press_f" => "4",
342 "SNVT_press_p" => "4",
343 "SNVT_pwr_fact" => "4",
344 "SNVT_pwr_fact_f" => "4",
345 "SNVT_res" => "4",
346 "SNVT_res_f" => "4",
347 "SNVT_res_kilo" => "4",
348 "SNVT_rpm" => "4",
349 "SNVT_scene" => "4",
350 "SNVT_scene_cfg" => "4",
351 "SNVT_setting" => "4",
352 "SNVT_smo_ocscur" => "4",
353 "SNVT_sound_db" => "4",
354 "SNVT_sound_db_f" => "4",
355 "SNVT_speed" => "4",
356 "SNVT_speed_f" => "4",
357 "SNVT_speed_mil" => "4",
358 "SNVT_state" => "4",
359 "SNVT_str_asc" => "4",
360 "SNVT_str_int" => "4",
361 "SNVT_switch" => "4",
362 "SNVT_telcom" => "4",
363 "SNVT_temp" => "4",
364 "SNVT_temp_f" => "4",
365 "SNVT_temp_p" => "4",
366 "SNVT_temp_ror" => "4",
367 "SNVT_temp_setpt" => "4",
368 "SNVT_therm_mode" => "4",
369 "SNVT_time_f" => "4",
370 "SNVT_time_hour" => "4",
371 "SNVT_time_min" => "4",
372 "SNVT_time_passed" => "4",
373 "SNVT_time_sec" => "4",
374 "SNVT_time_stamp" => "4",
375 "SNVT_time_zone" => "4",
376 "SNVT_tod_event" => "4",
377 "SNVT_trans_table" => "4",
378 "SNVT_vol" => "4",
379 "SNVT_vol_f" => "4",
380 "SNVT_vol_kilo" => "4",
381 "SNVT_vol_mil" => "4",
382 "SNVT_volt" => "4",
383 "SNVT_volt_dbmv" => "4",
384 "SNVT_volt_f" => "4",
385 "SNVT_volt_kilo" => "4",
386 "SNVT_volt_mil" => "4",
387 "SNVT_zerospan" => "4",
388 "alarm_type_t" => "5",
389 "calendar_type_t" => "5",
390 "chiller_t" => "5",
391 "config_source_t" => "5",
392 "currency_t" => "5",
393 "days_of_week_t" => "5",
394 "defrost_mode_t" => "5",
395 "defrost_state_t" => "5",
396 "defrost_term_t" => "5",
397 "discrete_levels_t" => "5",
398 "emerg_t" => "5",
399 "evap_t" => "5",
400 "file_request_t" => "5",
401 "file_status_t" => "5",
402 "fire_indicator_t" => "5",
403 "fire_init_t" => "5",
404 "fire_test_t" => "5",
405 "hvac_override_t" => "5",
406 "hvac_t" => "5",
407 "interp_t" => "5",
408 "learn_mode_t" => "5",
409 "object_request_t" => "5",
410 "occup_t" => "5",
411 "override_t" => "5",
412 "priority_level_t" => "5",
413 "scene_config_t" => "5",
414 "scene_t" => "5",
415 "setting_t" => "5",
416 "telcom_states_t" => "5",
417 "therm_mode_t" => "5");
418
419
420
421
422
423
424
425
426 $this->linkscripts = array(
427 "" => "donothing",
428 "1" => "donothing",
429 "2" => "donothing",
430 "3" => "donothing",
431 "4" => "donothing",
432 "5" => "donothing");
433 }