summaryrefslogtreecommitdiff
path: root/support/highlight/langDefs/ampl.lang
blob: 1ee903136a2b881196f607b3a47ab8e08d3f2168 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# AMPL language definition file
#
# Author: André Simon
#   Mail: andre.simon1@gmx.de
#   Date: 28.06.2003
# ------------------------------------------
# This file is a part of highlight, a free source code converter released under the GPL.
#
# The file is used to describe keywords and special symbols of programming languages.
# See README in the highlight directory for details.
#
# New definition files for future releases of highlight are always appreciated ;)
#
# ----------
# andre.simon1@gmx.de
# http:/www.andre-simon.de/

$DESCRIPTION=AMPL

$KEYWORDS(kwa)=and arc by check cross close diff difference div data display drop
else exists end forall fix function if in inter intersection interval include
less let maximize minimize min max mod model node not or objective option param
prod product print printf quit reset restore set setof subject subj s.t.
symdiff sum shell solution then to union update unfix var write binary circular
coeff coef cover dimen dimension default display_1col display_eps
display_max_2d_cols display_precison display_round display_transpose
display_width from gutter_width integer Infinity ordered obj
objective_precision omit_zero_cols omit_zero_rows output_precision
print_precision print_round print_seperator symbolic within

$KEYWORDS(kwb)= abs acos acosh alias asin asinh atan atan2 atanh Beta ceil cos
card Cauchy exp Exponential floor first Gamma Irand224 int log log10 last
member Normal next nextw ord ord0 Poisson precision prev prevw round sin sinh
sqrt tan tanh trunc Uniform Uniform01

$STRINGDELIMITERS=" '

$SL_COMMENT=#

$ML_COMMENT=/* */

$IGNORECASE=false

$SYMBOLS= ( ) [ ] { } , ; : & | < > !  = / *  %  + -