forked from schani/mathmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmathmap.lang
173 lines (147 loc) · 4.34 KB
/
mathmap.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language _name="MathMap" version="1.0" _section="Sources" mimetypes="application/x-mathmap">
<pattern-item _name = "Decimal" style = "Decimal">
<regex>\b[0-9]+\b</regex>
</pattern-item>
<pattern-item _name = "Floating Point Number" style = "Floating Point">
<regex>\b[0-9]*\.[0-9]+\b</regex>
</pattern-item>
<line-comment _name = "Line Comment" style= "Comment" end-at-line-end = "TRUE">
<start-regex>#</start-regex>
</line-comment>
<keyword-list _name = "Functions and Function Modifiers" style = "Keyword" case-sensitive="TRUE">
<!-- Filter Declarations -->
<keyword>filter</keyword>
<!-- Filter Modifiers -->
<keyword>pixel</keyword>
<keyword>stretched</keyword>
</keyword-list>
<keyword-list _name = "Boolean Bitwise Operators" style = "Keyword" case-sensitive="TRUE">
<keyword>xor</keyword>
</keyword-list>
<keyword-list _name = "Loop, Flow, and Exceptions Keywords" style = "Keyword" case-sensitive="TRUE">
<keyword>while</keyword>
<keyword>do</keyword>
<keyword>for</keyword>
<keyword>if</keyword>
<keyword>then</keyword>
<keyword>else</keyword>
<keyword>end</keyword>
</keyword-list>
<keyword-list _name = "Builtin Types" style = "Data Type" case-sensitive="TRUE">
<keyword>int</keyword>
<keyword>float</keyword>
<keyword>bool</keyword>
<keyword>color</keyword>
<keyword>image</keyword>
<keyword>curve</keyword>
<keyword>gradient</keyword>
</keyword-list>
<keyword-list _name = "Builtin Functions" style = "Others" case-sensitive="TRUE">
<!-- Debugging -->
<keyword>merd</keyword>
<keyword>print</keyword>
<!-- Arithmetic -->
<keyword>pmod</keyword>
<keyword>sqrt</keyword>
<keyword>sum</keyword>
<!-- Vector Functions -->
<keyword>dotp</keyword>
<keyword>crossp</keyword>
<keyword>det</keyword>
<keyword>normalize</keyword>
<keyword>abs</keyword>
<!-- Trigonometry -->
<keyword>deg2rad</keyword>
<keyword>rad2deg</keyword>
<keyword>sin</keyword>
<keyword>cos</keyword>
<keyword>tan</keyword>
<keyword>asin</keyword>
<keyword>acos</keyword>
<keyword>atan</keyword>
<!-- Exp and friends -->
<keyword>exp</keyword>
<keyword>log</keyword>
<!-- Complex -->
<keyword>arg</keyword>
<keyword>conj</keyword>
<!-- Hyperbolic -->
<keyword>sinh</keyword>
<keyword>cosh</keyword>
<keyword>tanh</keyword>
<keyword>asinh</keyword>
<keyword>acosh</keyword>
<keyword>atanh</keyword>
<keyword>gamma</keyword>
<!-- Elliptic -->
<keyword>ell_int_Kcomp</keyword>
<keyword>ell_int_Ecomp</keyword>
<keyword>ell_int_F</keyword>
<keyword>ell_int_E</keyword>
<keyword>ell_int_P</keyword>
<keyword>ell_int_D</keyword>
<keyword>ell_int_RC</keyword>
<keyword>ell_int_RD</keyword>
<keyword>ell_int_RF</keyword>
<keyword>ell_int_RJ</keyword>
<keyword>ell_jac_sn</keyword>
<keyword>ell_jac_cn</keyword>
<keyword>ell_jac_dn</keyword>
<!-- Floor and friends -->
<keyword>floor</keyword>
<keyword>ceil</keyword>
<keyword>sign</keyword>
<keyword>min</keyword>
<keyword>max</keyword>
<keyword>clamp</keyword>
<keyword>lerp</keyword>
<keyword>scale</keyword>
<!-- Polynomials -->
<keyword>solve</keyword>
<!-- Comparison -->
<keyword>inintv</keyword>
<!-- Colors -->
<keyword>gray</keyword>
<keyword>toHSVA</keyword>
<keyword>toRGBA</keyword>
<keyword>red</keyword>
<keyword>green</keyword>
<keyword>blue</keyword>
<keyword>alpha</keyword>
<keyword>rgbColor</keyword>
<keyword>rgbaColor</keyword>
<keyword>grayColor</keyword>
<keyword>grayaColor</keyword>
<!-- Coordinates -->
<keyword>toXY</keyword>
<keyword>toRA</keyword>
<!-- Random -->
<keyword>rand</keyword>
<!-- libnoise -->
<keyword>noise</keyword>
<keyword>noiseBillow</keyword>
<keyword>noiseRidgedMulti</keyword>
<keyword>voronoiCells</keyword>
</keyword-list>
<keyword-list _name = "Builtin Values" style = "Keyword" case-sensitive="TRUE">
<keyword>e</keyword>
<keyword>pi</keyword>
<keyword>xy</keyword>
<keyword>ra</keyword>
<keyword>XY</keyword>
<keyword>WH</keyword>
<keyword>x</keyword>
<keyword>y</keyword>
<keyword>X</keyword>
<keyword>Y</keyword>
<keyword>W</keyword>
<keyword>H</keyword>
<keyword>t</keyword>
<keyword>r</keyword>
<keyword>a</keyword>
<keyword>R</keyword>
<keyword>frame</keyword>
</keyword-list>
</language>