@duet3d/monacotokens 3.5.3 → 3.6.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/monaco-gcode.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,10 @@ Currently exported Monaco languages:
|
|
|
10
10
|
After importing the languages, you need to register them as following:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
+
monaco.languages.register({ id: "gcode-fdm" });
|
|
13
14
|
monaco.languages.setMonarchTokensProvider("gcode-fdm", gcodeFDMLanguage);
|
|
15
|
+
|
|
16
|
+
monaco.languages.register({ id: "gcode-cnc" });
|
|
14
17
|
monaco.languages.setMonarchTokensProvider("gcode-cnc", gcodeCNCLanguage);
|
|
15
18
|
```
|
|
16
19
|
|
package/dist/monaco-gcode.js
CHANGED
|
@@ -9,7 +9,7 @@ function generateMonarchLanguage(fdmMode) {
|
|
|
9
9
|
return {
|
|
10
10
|
consts: ["true", "false", "iterations", "line", "null", "pi", "result", "input"],
|
|
11
11
|
functions: ["abs", "acos", "asin", "atan", "atan2", "cos", "degrees", "exists", "fileexists", "fileread", "floor", "isnan", "max",
|
|
12
|
-
"min", "mod", "radians", "random", "sin", "sqrt", "tan", "vector"],
|
|
12
|
+
"min", "mod", "radians", "random", "sin", "square", "sqrt", "tan", "vector", "take", "drop", "find"],
|
|
13
13
|
keywords: ["abort", "echo", "if", "elif", "while", "set"],
|
|
14
14
|
noArgKeywords: ["else", "break", "continue"],
|
|
15
15
|
varKeywords: ["global", "var"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duet3d/monacotokens",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-rc.1",
|
|
4
4
|
"description": "TypeScript library that holds syntax highlighting files for the Monaco editor",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"/dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"monaco-editor": "^0.
|
|
28
|
+
"monaco-editor": "^0.52.2"
|
|
29
29
|
}
|
|
30
30
|
}
|