forked from andre-simon/highlight
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathascend.lang
48 lines (40 loc) · 1.38 KB
/
ascend.lang
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
47
48
Description="ASCEND"
Categories = {"source"}
Keywords={
{ Id=1,
List={ "ADD", "AND", "ALIASES", "ARE_ALIKE", "ARE_THE_SAME",
"ARE_NOT_THE_SAME", "ASSERT", "ATOM", "CALL", "CASE", "CARD", "CHECK", "CHOICE",
"CONSTANT", "CONDITIONAL", "CREATE", "DATA", "DEFAULT", "DEFINITION", "DO",
"ELSE", "FIX", "FOR", "FREE", "IF", "IN", "INPUT", "INTERSECTION", "IS_A",
"IS_REFINED_TO", "MAX", "MAXIMIZE", "MIN", "MINIMIZE", "NOTES", "OF", "OR",
"OTHERWISE", "OUTPUT", "PROVIDE", "PROD", "REPLACE", "REFINES", "RUN",
"SATISFIED", "SELECT", "SELF", "STUDY", "SUCH_THAT", "SUM", "SWITCH", "THEN",
"UNIVERSAL", "UNION", "UNITS", "USE", "WHEN", "WHERE", "WITH_VALUE", "WILL_BE",
"WILL_BE_THE_SAME", "WILL_NOT_BE_THE_SAME"},
},
{ Id=2,
List={"FALSE", "TRUE", "real_constant", "integer_constant", "symbol_constant",
"boolean_constant", "real", "integer", "symbol", "boolean", "set"},
},
{ Id=3,
List={"IMPORT", "REQUIRE", "MODEL", "END", "METHOD", "METHODS"},
},
{ Id=4,
Regex=[[(\w+)\s*\(]],
},
}
Strings={
Delimiter=[[']],
DelimiterPairs= {
{ Open=[[ \{ ]], Close=[[ \} ]] }
}
}
Comments={
{ Block=true,
Nested=false,
Delimiter= { [[\(\*]],[[\*\)]] }
}
}
IgnoreCase=false
Operators=[[\(|\)|\[|\]|\,|\;|\.|\:|\&|<|>|\!|\=|\/|\*|\%|\+|\-|\~]]
EnableIndentation=true