-
Notifications
You must be signed in to change notification settings - Fork 2
/
maple.tmLanguage
162 lines (162 loc) · 8.28 KB
/
maple.tmLanguage
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>mpl</string>
<string>md</string>
<string>mm</string>
</array>
<key>name</key>
<string>Maple</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>#.*$
?</string>
<key>name</key>
<string>comment.line.maple</string>
</dict>
<dict>
<key>begin</key>
<string>\(\*</string>
<key>end</key>
<string>\*\)</string>
<key>name</key>
<string>comment.block.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(module|proc)\b</string>
<key>name</key>
<string>entity.name.function.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(apply|args|assign|assigned|cat|convert|copy|define|diff|dismantle|dsolve|entries|erf|eval|evalb|evalc|evalf|expand|factor|fsolve|gc|has|hastype|indets|indices|int|length|lhs|lprint|map|map2|member|membertype|nargs|nops|numelems|op|parse|plot|plot3d|print|printf|read|readdata|readline|readstat|remove|restart|rhs|save|select|selectremove|seq|showstat|solve|sscanf|stopat|subs|subsop|sprintf|time|type|unapply|userinfo|writedata|writeline|zip)\b</string>
<key>name</key>
<string>variable.parameter.commands.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(Algebraic|ArrayTools|AudioTools|Student:-Basics|FileTools:-Binary|Bits|RandomTools:-BlumBlumShub|DataSets:-Builtin|MapleTA:-Builtin|CAD|CUDA|Cache|Student:-Calculus1|StandardContext:-Categories|RegularChains:-ChainTools|CodeGeneration|CodeTools|ColorTools|DocumentTools:-Components|FileTools:-Compressed|RegularChains:-ConstructibleSetTools|ContextMenu|Units:-Converter|OreTools:-Converters|CodeTools:-Profiling:-Coverage|CurveFitting|DataSets|Database|SumTools:-DefiniteSum|DifferentialAlgebra|DifferentialGeometry|DiscreteTransforms|DocumentTools|Domains|DynamicSystems|StandardContext:-Entries|StandardContext:-EntryGenerators|EssayTools|ExcelTools|ExternalCalling|RegularChains:-FastArithmeticTools|FileTools|Finance|Fractals|OreTools:-FractionFree|GaussInt|Grading|GraphTheory|Grid|Groebner|GroupTheory|HTTP|HelpTools|SumTools:-Hypergeometric|PolynomialIdeals:-IdealInfo|ImageTools|SumTools:-IndefiniteSum|SolveTools:-Inequality|InertForm|InstallerBuilder|IntegerRelations|IntegrationTools|Iterator:-Inversion|IterativeMaps|Iterator|JSON|`LREtools/HypergeometricTerm`|Fractals:-LSystem|CodeGeneration:-LanguageDefinition|LargeExpressions|DocumentTools:-Layout|DocumentTools:-Layout|LibraryTools|LinearAlgebra|Student:-LinearAlgebra|RandomTools:-LinearCongruence|LinearFunctionalSystems|LinearOperators|ListTools|Logic|MTM|Magma|MapleTA|Maplets|MathML|OreTools:-MathOperations|MathematicalFunctions|Matlab|MatrixPolynomialAlgebra|RegularChains:-MatrixTools|RandomTools:-MersenneTwister|Iterator:-MixedRadix|MmaTranslator:-Mma|MmaTranslator|LinearAlgebra:-Modular|OreTools:-Modular|MultiSeries|Student:-MultivariateCalculus|NumberTheory|Student:-NumericalAnalysis|Optimization|Ordinals|OreTools|Ore_algebra|OrthogonalSeries|PDEtools|RootFinding:-Parametric|RegularChains:-ParametricSystemTools|StringTools:-PatternDictionary|Physics|PolyhedralSets|PolynomialIdeals|PolynomialTools|Student:-Precalculus|ProcessControl|CodeTools:-Profiling|CodeTools:-ProgramAnalysis|OreTools:-Properties|QDifferenceEquations|RandomTools:-QuadraticCongruence|DataSets:-Quandl|StandardContext:-Queries|GraphTheory:-RandomGraphs|RandomTools|RationalNormalForms|RealDomain|RegularChains|RootFinding|SNAP|ScientificConstants|ScientificErrorAnalysis|Security|RegularChains:-SemiAlgebraicSetTools|SignalProcessing|Slode|Sockets|SoftwareMetrics|SolveTools|GraphTheory:-SpecialGraphs|Spread|Units:-Standard|StandardContext|Statistics|Student:-Statistics|StringTools|SumTools|ContextMenu:-Test|Physics:-Tetrads|FileTools:-Text|ThermophysicalData|Threads|TimeSeriesAnalysis|Tolerances|DifferentialAlgebra:-Tools|TypeTools|Typesetting|URL|OreTools:-Utility|VariationalCalculus|Student:-VectorCalculus|VectorCalculus|Physics:-Vectors|Worksheet|XMLTools|codegen|combinat|eBookTools|genfunc|geom3d|geometry|gfun|heap|numapprox|padic|plots|plottools|powseries|priqueue|queue|stack|sumtools)\b</string>
<key>name</key>
<string>variable.parameter.commands.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(add|ceil|denom|floor|igcd|Im|intersect|iquo|max|min|minus|mod|modp|mods|mul|numer|product|rand|Re|round|sqrt|subset|sum|union)\b</string>
<key>name</key>
<string>variable.parameter.math.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(anames|cache|exports|interface|kernelopts|option|protect|quit|remember|system|trace|unprotect|use|uses|with)\b</string>
<key>name</key>
<string>variable.parameter.system.maple</string>
</dict>
<dict>
<key>match</key>
<string>[a-zA-Z]+\[[a-zA-Z][a-zA-Z0-9]+\]+\:+\-+([a-zA-Z][a-zA-Z0-9]*)+|[a-zA-Z]+(\:\-[a-zA-Z][a-zA-Z0-9]*)+</string>
<key>name</key>
<string>variable.parameter.general.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(diffalg|finance|linalg|networks|numtheory|polytools|process|stats|student|tensor)\b</string>
<key>name</key>
<string>invalid.deprecated.packages.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(array|Eigenvals|ERROR|evalm|INTERFACE_HELP|interp|intrep2maple|lattice|maple2intrep|matrix|maxorder|ModifiedMeijerG|pdesolve|animate3d|cylinderplot|graphplot3d|sphereplot|pieslice|vrml|procbody|procmake|radsimp|ratinterp|readlib|requires|RETURN|SDMPolynom|\_seed|solvefor|spline|Svd|thiele|traperror|ShortTermOrder|TermOrder|vector)\b</string>
<key>name</key>
<string>invalid.deprecated.commands.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(\-\-)\b</string>
<key>name</key>
<string>invalid.illegal.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(TRUE|FALSE|NaN)\b</string>
<key>name</key>
<string>constant.language.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b</string>
<key>name</key>
<string>constant.numeric.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(global|local)\b</string>
<key>name</key>
<string>storage.modifier.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(algebraic|anything|Array|boolean|character|complex|even|float|fraction|indexed|integer|list|listlist|matrix|Matrix|name|negint|nonnegint|nonposint|numeric|odd|posint|prime|procedure|protected|range|rational|record|Record|rtable|set|specfunc|string|table|truefalse|uneval|Vector|void)\b</string>
<key>name</key>
<string>storage.type.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(Catalan|constants|Digits|FAIL|false|gamma|I|infinity|lasterror|libname|NULL|Order|Pi|printlevel|true|undefined)\b</string>
<key>name</key>
<string>support.constant.initiallyknownnames.maple</string>
</dict>
<dict>
<key>match</key>
<string>\b(and|assuming|break|by|catch|description|do|done|elif|else|end|error|export|fi|finally|for|from|if|implies|in|is|next|not|od|or|return|stop|then|to|try|WARNING|while|xor)\b</string>
<key>name</key>
<string>keyword.control.maple</string>
</dict>
<dict>
<key>match</key>
<string>\(|\)|\[|\]|\{|\}|\;|\:|\'|\<|\>|\,|\:\:</string>
<key>name</key>
<string>comment.character.maple</string>
</dict>
<dict>
<key>match</key>
<string>\+|\-|\*|\/|\^|\~\+|\~\-|\~\*|\~\/</string>
<key>name</key>
<string>keyword.operator.arithmetic.maple</string>
</dict>
<dict>
<key>match</key>
<string>\:=</string>
<key>name</key>
<string>keyword.operator.assignment.maple</string>
</dict>
<dict>
<key>match</key>
<string>\<\>|\|\||\>\=|\<\=</string>
<key>name</key>
<string>keyword.operator.logical.maple</string>
</dict>
<dict>
<key>match</key>
<string>\@|\@\@|\%|\%\%|\%\%\%|\!|\:\-</string>
<key>name</key>
<string>keyword.operator.misc.maple</string>
</dict>
<dict>
<key>match</key>
<string>((?<![\\])["])((?:.(?!(?<![\\])\1))*.?)\1</string>
<key>name</key>
<string>string.double.maple</string>
</dict>
</array>
<key>scopeName</key>
<string>source.maple</string>
<key>uuid</key>
<string>cb65c5f8-8140-4a4f-b204-476dc6d7812c</string>
</dict>
</plist>