/usr/share/highlight/langDefs/ampl.lang is in highlight-common 3.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | -- Language definition generated by lang2to3
Description="AMPL"
Keywords={
{ Id=1,
List={"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"},
},
{ Id=2,
List={"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"},
},
}
Strings={
Delimiter=[["|']],
}
IgnoreCase=false
Comments={
{ Block=false,
Delimiter= { [[#]] },
},
{ Block=true,
Nested=false,
Delimiter= { [[\/\*]],[[\*\/]],}
}
}
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|\<|\>|\!|\=|\/|\*|\%|\+|\-]]
|