@duet3d/monacotokens 3.7.0-rc.4 → 3.7.0

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.
@@ -13,6 +13,8 @@ function generateMonarchLanguage(fdmMode) {
13
13
  flowExprKeywords: ["if", "elif", "while"],
14
14
  // Flow-control keywords that stand alone - render in the same purple as flowExprKeywords
15
15
  flowNoArgKeywords: ["else", "break", "continue"],
16
+ // Standalone keywords that don't affect control flow - render as regular keywords (blue)
17
+ noArgKeywords: ["skip"],
16
18
  varKeywords: ["global", "var"],
17
19
  symbols: /[=><!~?:&|+\-*#\/\^%]+/,
18
20
  operators: ['*', '/', '+', '-', "==", "!=", '=', "<=", '<', ">=", ">>>", ">>", '>', '!', "&&", '&', "||", '|', '^', '?', ':'],
@@ -38,6 +40,7 @@ function generateMonarchLanguage(fdmMode) {
38
40
  "@keywords": { token: "keyword", next: "@lineExpression" },
39
41
  "@flowExprKeywords": { token: "keyword.flow", next: "@lineExpression" },
40
42
  "@flowNoArgKeywords": { token: "keyword.flow" },
43
+ "@noArgKeywords": { token: "keyword" },
41
44
  "@varKeywords": { token: "keyword", next: "varName" }
42
45
  }
43
46
  }],
package/dist/providers.js CHANGED
@@ -384,7 +384,8 @@ const metaKeywords = [
384
384
  { keyword: "var", syntax: "var <name> = <expression>", description: "Declare a local variable" },
385
385
  { keyword: "global", syntax: "global <name> = <expression>", description: "Declare a global variable" },
386
386
  { keyword: "abort", syntax: "abort [<message>]", description: "Abort the running macro / queued moves with an optional message" },
387
- { keyword: "echo", syntax: "echo <expression>", description: "Print an expression to the response channel" }
387
+ { keyword: "echo", syntax: "echo <expression>", description: "Print an expression to the response channel" },
388
+ { keyword: "skip", syntax: "skip", description: "Do nothing" }
388
389
  ];
389
390
  /**
390
391
  * Find the closest G/M/T-code to the left of `column` on the given line.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duet3d/monacotokens",
3
- "version": "3.7.0-rc.4",
3
+ "version": "3.7.0",
4
4
  "description": "TypeScript library that holds syntax highlighting files for the Monaco editor",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "homepage": "https://github.com/Duet3D/MonacoTokens#readme",
28
28
  "peerDependencies": {
29
- "@duet3d/objectmodel": "~3.7.0-beta.2",
30
- "monaco-editor-core": "^0.56.0",
31
- "monaco-editor": "^0.56.0"
29
+ "@duet3d/objectmodel": "~3.7.0",
30
+ "monaco-editor-core": "^0.57.0",
31
+ "monaco-editor": "^0.57.0"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "monaco-editor-core": { "optional": true },
35
35
  "monaco-editor": { "optional": true }
36
36
  },
37
37
  "devDependencies": {
38
- "@duet3d/objectmodel": "~3.7.0-beta.6",
39
- "monaco-editor-core": "^0.56.0",
38
+ "@duet3d/objectmodel": "~3.7.0",
39
+ "monaco-editor-core": "^0.57.0",
40
40
  "typescript": "^7.0.2"
41
41
  },
42
42
  "files": [