/[ascend]/trunk/tools/gtksourceview-2.0/ascend.lang
ViewVC logotype

Contents of /trunk/tools/gtksourceview-2.0/ascend.lang

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2063 - (show annotations) (download)
Tue Jun 30 23:39:39 2009 UTC (13 years, 5 months ago) by jpye
File size: 15909 byte(s)
Add 'DIMENSION' keyword for gedit.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Authors: John Pye, Marco Barisione, Emanuele Aina
4 Copyright (C) 2007-2009 Carnegie Mellon University
5 Copyright (C) 2005-2007 Marco Barisione <barisione@gmail.com>
6 Copyright (C) 2005-2007 Emanuele Aina
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public
19 License along with this library; if not, write to the
20 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
22
23 -->
24 <language id="ascend" _name="ASCEND" version="2.0" _section="Scientific">
25 <metadata>
26 <property name="mimetypes">text/x-ascend-model</property>
27 <property name="globs">*.a4c;*.a4l</property>
28 <property name="block-comment-start">(*</property>
29 <property name="block-comment-end">*)</property>
30 </metadata>
31
32 <styles>
33 <style id="comment" _name="Comment" map-to="def:comment"/>
34 <style id="error" _name="Error" map-to="def:error"/>
35 <style id="string" _name="String" map-to="def:string"/>
36 <style id="char" _name="Character" map-to="def:character"/>
37 <style id="keyword" _name="Keyword" map-to="def:keyword"/>
38 <style id="type" _name="Data Type" map-to="def:type"/>
39 <style id="common-methods" _name="Common Methods" map-to="def:type"/>
40 <style id="floating-point" _name="Floating point number" map-to="def:floating-point"/>
41 <style id="decimal" _name="Decimal number" map-to="def:decimal"/>
42 <style id="boolean" _name="Boolean value" map-to="def:boolean"/>
43 <style id="units" _name="Units of measurement" map-to="def:comment"/>
44 </styles>
45
46 <definitions>
47 <context id="ascend">
48 <include>
49 <!-- gtk-doc -->
50 <context ref="gtk-doc:inline-docs-section"/>
51
52 <!-- Comments -->
53 <context id="comment-multiline" style-ref="comment">
54 <start>\(\*</start>
55 <end>\*\)</end>
56 <include>
57 <context ref="comment-multiline"/>
58 </include>
59 </context>
60
61 <context id="close-comment-outside-comment" style-ref="error">
62 <match>\*\)</match>
63 </context>
64
65 <context id="string" style-ref="string" end-at-line-end="true">
66 <start>"</start>
67 <end>"</end>
68 <include>
69 <context ref="def:line-continue"/>
70 </include>
71 </context>
72
73 <context id="units" style-ref="comment" end-at-line-end="false">
74 <start>{</start>
75 <end>}</end>
76 </context>
77
78 <context id="char" style-ref="char" end-at-line-end="false">
79 <start>'</start>
80 <end>'</end>
81 </context>
82
83 <!-- http://www.lysator.liu.se/c/ANSI-C-grammar-l.html -->
84 <context id="float" style-ref="floating-point">
85 <match extended="true">
86 (?&lt;![\w\.])
87 ((\.[0-9]+ | [0-9]+\.[0-9]*) ([Ee][+-]?[0-9]*)? |
88 ([0-9]+[Ee][+-]?[0-9]*))
89 [fFlL]?
90 (?![\w\.])
91 </match>
92 </context>
93
94 <context id="decimal" style-ref="decimal">
95 <match extended="true">
96 (?&lt;![\w\.])
97 [0-9]+[uUlL]*
98 (?![\w\.])
99 </match>
100 </context>
101
102 <!-- Keywords -->
103 <context id="keywords" style-ref="keyword">
104 <keyword>ADD</keyword>
105 <keyword>AND</keyword>
106 <keyword>ALIASES</keyword>
107 <keyword>ARE_ALIKE</keyword>
108 <keyword>ARE_THE_SAME</keyword>
109 <keyword>ARE_NOT_THE_SAME</keyword>
110 <keyword>ASSERT</keyword>
111 <keyword>ATOM</keyword>
112 <keyword>CALL</keyword>
113 <keyword>CASE</keyword>
114 <keyword>CARD</keyword>
115 <keyword>CHECK</keyword>
116 <keyword>CHOICE</keyword>
117 <keyword>CONSTANT</keyword>
118 <keyword>CONDITIONAL</keyword>
119 <keyword>CREATE</keyword>
120 <keyword>DATA</keyword>
121 <keyword>DEFAULT</keyword>
122 <keyword>DEFINITION</keyword>
123 <keyword>DIMENSION</keyword>
124 <keyword>DIMENSIONLESS</keyword>
125 <keyword>DO</keyword>
126 <keyword>ELSE</keyword>
127 <keyword>END</keyword>
128 <keyword>EXTERNAL</keyword>
129 <keyword>FIX</keyword>
130 <keyword>FOR</keyword>
131 <keyword>FREE</keyword>
132 <keyword>IF</keyword>
133 <keyword>IMPORT</keyword>
134 <keyword>IN</keyword>
135 <keyword>INPUT</keyword>
136 <keyword>INTERSECTION</keyword>
137 <keyword>IS_A</keyword>
138 <keyword>IS_REFINED_TO</keyword>
139 <keyword>MAX</keyword>
140 <keyword>MAXIMIZE</keyword>
141 <keyword>METHOD</keyword>
142 <keyword>METHODS</keyword>
143 <keyword>MIN</keyword>
144 <keyword>MINIMIZE</keyword>
145 <keyword>MODEL</keyword>
146 <keyword>NOTES</keyword>
147 <keyword>OF</keyword>
148 <keyword>OR</keyword>
149 <keyword>OTHERWISE</keyword>
150 <keyword>OUTPUT</keyword>
151 <keyword>PROVIDE</keyword>
152 <keyword>PROD</keyword>
153 <keyword>REPLACE</keyword>
154 <keyword>REQUIRE</keyword>
155 <keyword>REFINES</keyword>
156 <keyword>RUN</keyword>
157 <keyword>SATISFIED</keyword>
158 <keyword>SELECT</keyword>
159 <keyword>SELF</keyword>
160 <keyword>STUDY</keyword>
161 <keyword>SUCH_THAT</keyword>
162 <keyword>SUM</keyword>
163 <keyword>SWITCH</keyword>
164 <keyword>THEN</keyword>
165 <keyword>UNIVERSAL</keyword>
166 <keyword>UNION</keyword>
167 <keyword>UNITS</keyword>
168 <keyword>USE</keyword>
169 <keyword>WHEN</keyword>
170 <keyword>WHERE</keyword>
171 <keyword>WITH_VALUE</keyword>
172 <keyword>WILL_BE</keyword>
173 <keyword>WILL_BE_THE_SAME</keyword>
174 <keyword>WILL_NOT_BE_THE_SAME</keyword>
175 </context>
176
177 <context id="types" style-ref="type">
178 <!-- from basemodel.a4l -->
179 <keyword>catch_Word_model</keyword>
180
181 <!-- from system.a4l -->
182 <keyword>relation</keyword>
183 <keyword>logic_relation</keyword>
184 <keyword>solver_var</keyword>
185 <keyword>boolean_var</keyword>
186 <keyword>generic_real</keyword>
187 <keyword>solver_int</keyword>
188 <keyword>solver_binary</keyword>
189 <keyword>solver_semi</keyword>
190
191 <!-- from atoms.a4l -->
192
193 <keyword>constant</keyword>
194 <keyword>critical_compressibility</keyword>
195 <keyword>acentric_factor</keyword>
196 <keyword>UNIFAC_size</keyword>
197 <keyword>Wilson_constant</keyword>
198 <keyword>vapor_pressure_constant</keyword>
199 <keyword>factor_constant</keyword>
200 <keyword>molar_weight_constant</keyword>
201 <keyword>atomic_mass_constant</keyword>
202 <keyword>temperature_constant</keyword>
203 <keyword>boiling_temperature</keyword>
204 <keyword>critical_temperature</keyword>
205 <keyword>reference_temperature</keyword>
206 <keyword>UNIFAC_a</keyword>
207 <keyword>pressure_constant</keyword>
208 <keyword>molar_volume_constant</keyword>
209 <keyword>critical_volume</keyword>
210 <keyword>reference_molar_volume</keyword>
211 <keyword>reference_mass_density</keyword>
212 <keyword>molar_energy_constant</keyword>
213 <keyword>reference_molar_energy</keyword>
214 <!-- tedious... some missing here... -->
215 <keyword>molar_gas_constant</keyword>
216 <keyword>gravity_constant</keyword>
217 <keyword>circle_constant</keyword>
218 <keyword>speed_of_light</keyword>
219 <keyword>planck_constant</keyword>
220 <!-- tedious... some missing here... -->
221 <keyword>boolean_start_true</keyword>
222 <keyword>boolean_start_false</keyword>
223 <keyword>start_true</keyword>
224 <keyword>start_false</keyword>
225 <keyword>bound_width</keyword>
226 <keyword>scaling_constant</keyword>
227 <keyword>ode_counter</keyword>
228 <keyword>obs_counter</keyword>
229 <keyword>real_parameter</keyword>
230 <keyword>length_parameter</keyword>
231 <keyword>positive_variable</keyword>
232 <keyword>factor</keyword>
233 <keyword>variable</keyword>
234 <keyword>fraction</keyword>
235 <keyword>positive_factor</keyword>
236 <keyword>small_factor</keyword>
237 <keyword>small_positive_factor</keyword>
238 <keyword>reduced_pressure</keyword>
239 <keyword>exp_sub</keyword>
240 <keyword>power_sub</keyword>
241
242 <keyword>temperature</keyword>
243 <keyword>inverse_temperature</keyword>
244 <keyword>delta_temperature</keyword>
245 <keyword>force</keyword>
246 <keyword>force_per_length</keyword>
247 <keyword>force_per_volume</keyword>
248 <keyword>surface_tension</keyword>
249 <keyword>pressure</keyword>
250 <keyword>pressure_rate</keyword>
251 <keyword>delta_pressure</keyword>
252 <keyword>k_constant</keyword>
253 <keyword>vapor_pressure</keyword>
254 <keyword>youngs_modulus</keyword>
255 <keyword>pressure_per_length</keyword>
256 <keyword>molar_mass</keyword>
257 <keyword>mass</keyword>
258 <keyword>mole_scale</keyword>
259 <keyword>mole</keyword>
260 <keyword>mass_rate</keyword>
261 <keyword>mass_rate_constant</keyword>
262 <keyword>mass_flux</keyword>
263 <keyword>mass_rate_rate</keyword>
264 <keyword>mass_rate_per_length</keyword>
265 <keyword>molar_rate_scale</keyword>
266 <keyword>molar_rate</keyword>
267 <keyword>conc_rate</keyword>
268 <keyword>mole_fraction</keyword>
269 <keyword>mass_fraction</keyword>
270 <keyword>molar_volume</keyword>
271 <keyword>volume_scale</keyword>
272 <keyword>volume</keyword>
273 <keyword>volume_rate_scale</keyword>
274 <keyword>volume_rate</keyword>
275 <keyword>volume_rate_square</keyword>
276 <keyword>volume_expansivity</keyword>
277 <keyword>molar_density</keyword>
278 <keyword>mass_density</keyword>
279 <keyword>molar_energy</keyword>
280 <keyword>energy_scale</keyword>
281 <keyword>energy</keyword>
282 <keyword>energy_per_volume</keyword>
283 <keyword>energy_rate_scale</keyword>
284 <keyword>energy_rate</keyword>
285 <keyword>power_per_length</keyword>
286 <keyword>power_per_volume</keyword>
287 <keyword>power_per_area</keyword>
288 <keyword>power_per_temperature</keyword>
289 <keyword>irradiance</keyword>
290 <keyword>irradiation</keyword>
291 <keyword>molar_heat_capacity</keyword>
292 <keyword>molar_energy_rate</keyword>
293 <keyword>molar_entropy</keyword>
294 <keyword>entropy</keyword>
295 <keyword>entropy_rate</keyword>
296 <keyword>partition_coefficient</keyword>
297 <keyword>relative_volatility</keyword>
298
299 <keyword>monetary_unit</keyword>
300 <keyword>cost_per_volume</keyword>
301 <keyword>cost_per_mass</keyword>
302 <keyword>cost_per_mass_constant</keyword>
303 <keyword>cost_per_mole</keyword>
304 <keyword>cost_per_time</keyword>
305 <keyword>cost_per_energy</keyword>
306 <keyword>cost_per_mass_per_distance_constant</keyword>
307
308 <keyword>distance</keyword>
309 <keyword>distance_constant</keyword>
310 <keyword>area</keyword>
311 <keyword>inverse_area</keyword>
312 <keyword>angle</keyword>
313 <keyword>solid_angle</keyword>
314 <keyword>time</keyword>
315 <keyword>speed</keyword>
316 <keyword>acceleration</keyword>
317 <keyword>frequency</keyword>
318 <keyword>stiffness</keyword>
319 <keyword>viscosity</keyword>
320 <keyword>kinematic_viscosity</keyword>
321 <keyword>thermal_conductivity</keyword>
322 <keyword>diffusivity</keyword>
323
324 <keyword>voltage</keyword>
325 <keyword>resistance</keyword>
326 <keyword>current</keyword>
327 <keyword>capacitance</keyword>
328 <keyword>inductance</keyword>
329 <keyword>magnetic_field</keyword>
330 <keyword>electric_field</keyword>
331
332 <keyword>delta_distance</keyword>
333 <keyword>delta_area</keyword>
334 <keyword>temperature_rate</keyword>
335 <keyword>delta_mass</keyword>
336 <keyword>delta_mole</keyword>
337 <keyword>delta_mass_rate</keyword>
338 <keyword>delta_molar_rate</keyword>
339 <keyword>delta_volume_rate</keyword>
340 <keyword>density_rate</keyword>
341 <keyword>delta_energy_rate</keyword>
342 <keyword>delta_molar_energy_rate</keyword>
343 <keyword>delta_entropy</keyword>
344 <keyword>delta_entropy_rate</keyword>
345
346 <keyword>mass_sec</keyword>
347 <keyword>mole_sec</keyword>
348 <keyword>rate</keyword>
349
350 <keyword>deflection</keyword>
351 <keyword>second_moment_of_inertia</keyword>
352 <keyword>polar_moment_of_inertia</keyword>
353 <keyword>second_moment_of_area_constant</keyword>
354 <keyword>length_constant</keyword>
355 <keyword>area_constant</keyword>
356 <keyword>moment</keyword>
357 <keyword>stress</keyword>
358
359 <!-- from johnpye/thermo_types.a4c -->
360 <keyword>specific_gas_constant</keyword>
361 <keyword>mass_density_constant</keyword>
362 <keyword>heat_transfer_coefficient</keyword>
363 <keyword>specific_enthalpy</keyword>
364 <keyword>specific_entropy</keyword>
365 <keyword>specific_heat_capacity</keyword>
366 <keyword>heat_capacity</keyword>
367 <keyword>specific_volume</keyword>
368 <keyword>specific_energy</keyword>
369 <keyword>delta_specific_energy</keyword>
370 <keyword>specific_power</keyword>
371 <keyword>delta_specific_power</keyword>
372 <keyword>specific_energy_rate</keyword>
373 <keyword>specific_enthalpy_rate</keyword>
374 <keyword>ua_value</keyword>
375 <keyword>R_value</keyword>
376 <keyword>pressure_per_temperature</keyword>
377 <keyword>energy_rate_per_length</keyword>
378 <keyword>energy_flux</keyword>
379 <keyword>capacity_rate</keyword>
380 <keyword>thermo_state</keyword>
381
382 <keyword>real_constant</keyword>
383 <keyword>integer_constant</keyword>
384 <keyword>symbol_constant</keyword>
385 <keyword>boolean_constant</keyword>
386
387 <keyword>real</keyword>
388 <keyword>integer</keyword>
389 <keyword>symbol</keyword>
390 <keyword>boolean</keyword>
391 <keyword>set</keyword>
392
393 <!-- from plot.a4l: plot types-->
394 <keyword>pltmodel</keyword>
395 <keyword>plt_point</keyword>
396 <keyword>plt_curve</keyword>
397 <keyword>plt_plot_symbol</keyword>
398 <keyword>plt_plot_integer</keyword>
399 </context>
400
401 <context id="common-methods" style-ref="common-methods">
402 <keyword>on_load</keyword>
403 <keyword>default_self</keyword>
404 <keyword>specify</keyword>
405 <keyword>reset</keyword>
406 <keyword>values</keyword>
407 <keyword>ClearAll</keyword>
408 <keyword>bound_self</keyword>
409 <keyword>default_all</keyword>
410 <keyword>bound_all</keyword>
411 <keyword>self_test</keyword>
412 <keyword>scale_self</keyword>
413 <keyword>check_self</keyword>
414 <keyword>check_all</keyword>
415 <keyword>scale_all</keyword>
416 <keyword>default</keyword>
417 </context>
418
419 <context id="boolean" style-ref="boolean">
420 <keyword>TRUE</keyword>
421 <keyword>FALSE</keyword>
422 </context>
423
424 </include>
425 </context>
426 </definitions>
427 </language>

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22