@yorun-ai/skel-highlight 0.17.0 → 0.19.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.
package/README.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  Frontend syntax-highlighting definitions for the Skel contract language. The package supports Shiki, PrismJS, Highlight.js, Monaco Editor, Starry Night, and CodeMirror 6. Its TextMate grammar is the canonical lexical definition shared with the VS Code extension.
4
4
 
5
- The `api` modifier is highlighted in service declarations; `ext` is highlighted in service and event declarations. Authentication modes `required`, `optional`, `anonymous`, and `off` are highlighted alongside `auth`. Legacy bare `auth` and `noauth` remain supported.
5
+ The `api` modifier is highlighted in service declarations; `ext` is highlighted in service and event declarations. Authentication modes `required`, `optional`, `anonymous`, and `off` are highlighted alongside `auth`. Legacy `noauth` remains recognized for reading older files; skelc v0.31.0 and newer reject bare `auth`/`noauth`.
6
+
7
+ Versioned names such as `OrderApiServiceV999` and comma-separated, optionally multiline `for` audiences are highlighted. Language validation is provided by `skelc lsp` v0.32.0 or newer.
8
+
9
+ Abstract configs (`abs config CacheAbsConfig eternal { ... }`) and config adoption (`config CacheConfig = CacheAbsConfig`, including imported sources) are highlighted. Language validation for these declarations requires `skelc lsp` v0.33.0 or newer.
6
10
 
7
11
  Field names such as `data: list<TItem>` are distinguished from declaration keywords such as `data PageResp<TItem>` across the adapters.
8
12
 
@@ -18,8 +18,8 @@ var controlKeywords = Object.freeze([
18
18
  "pub",
19
19
  "api",
20
20
  "ext",
21
+ "abs",
21
22
  "as",
22
- "via",
23
23
  "for",
24
24
  "auth",
25
25
  "noauth",
@@ -40,9 +40,6 @@ var controlKeywords = Object.freeze([
40
40
  "check",
41
41
  "all",
42
42
  "any",
43
- "client",
44
- "agent",
45
- "openapi",
46
43
  "eternal",
47
44
  "instant"
48
45
  ]);
@@ -15,8 +15,8 @@ var controlKeywords = Object.freeze([
15
15
  "pub",
16
16
  "api",
17
17
  "ext",
18
+ "abs",
18
19
  "as",
19
- "via",
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
@@ -37,9 +37,6 @@ var controlKeywords = Object.freeze([
37
37
  "check",
38
38
  "all",
39
39
  "any",
40
- "client",
41
- "agent",
42
- "openapi",
43
40
  "eternal",
44
41
  "instant"
45
42
  ]);
package/dist/index.js CHANGED
@@ -141,7 +141,7 @@ var skel_tmLanguage_default = {
141
141
  patterns: [
142
142
  {
143
143
  name: "meta.definition.skel",
144
- match: "^\\s*(?:(pub|api|ext)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
144
+ match: "^\\s*(?:(pub|api|ext|abs)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
145
145
  captures: {
146
146
  "1": {
147
147
  name: "storage.modifier.public.skel"
@@ -177,18 +177,6 @@ var skel_tmLanguage_default = {
177
177
  name: "entity.name.function.action.skel"
178
178
  }
179
179
  }
180
- },
181
- {
182
- name: "meta.actor-access.skel",
183
- match: "\\b(via)\\s+([A-Za-z_][A-Za-z0-9_]*)",
184
- captures: {
185
- "1": {
186
- name: "keyword.declaration.via.skel"
187
- },
188
- "2": {
189
- name: "constant.language.actor-via.skel"
190
- }
191
- }
192
180
  }
193
181
  ]
194
182
  },
@@ -307,7 +295,7 @@ var skel_tmLanguage_default = {
307
295
  patterns: [
308
296
  {
309
297
  name: "keyword.control.skel",
310
- match: "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
298
+ match: "\\b(pub|api|ext|abs|domain|import|as|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|eternal|instant)\\b"
311
299
  }
312
300
  ]
313
301
  },
@@ -321,6 +309,10 @@ var skel_tmLanguage_default = {
321
309
  },
322
310
  operators: {
323
311
  patterns: [
312
+ {
313
+ name: "keyword.operator.assignment.skel",
314
+ match: "="
315
+ },
324
316
  {
325
317
  name: "keyword.operator.nullable.skel",
326
318
  match: "\\?"
package/dist/monaco.js CHANGED
@@ -15,8 +15,8 @@ var controlKeywords = Object.freeze([
15
15
  "pub",
16
16
  "api",
17
17
  "ext",
18
+ "abs",
18
19
  "as",
19
- "via",
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
@@ -37,9 +37,6 @@ var controlKeywords = Object.freeze([
37
37
  "check",
38
38
  "all",
39
39
  "any",
40
- "client",
41
- "agent",
42
- "openapi",
43
40
  "eternal",
44
41
  "instant"
45
42
  ]);
package/dist/prism.js CHANGED
@@ -15,8 +15,8 @@ var controlKeywords = Object.freeze([
15
15
  "pub",
16
16
  "api",
17
17
  "ext",
18
+ "abs",
18
19
  "as",
19
- "via",
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
@@ -37,9 +37,6 @@ var controlKeywords = Object.freeze([
37
37
  "check",
38
38
  "all",
39
39
  "any",
40
- "client",
41
- "agent",
42
- "openapi",
43
40
  "eternal",
44
41
  "instant"
45
42
  ]);
@@ -141,7 +141,7 @@ var skel_tmLanguage_default = {
141
141
  patterns: [
142
142
  {
143
143
  name: "meta.definition.skel",
144
- match: "^\\s*(?:(pub|api|ext)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
144
+ match: "^\\s*(?:(pub|api|ext|abs)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
145
145
  captures: {
146
146
  "1": {
147
147
  name: "storage.modifier.public.skel"
@@ -177,18 +177,6 @@ var skel_tmLanguage_default = {
177
177
  name: "entity.name.function.action.skel"
178
178
  }
179
179
  }
180
- },
181
- {
182
- name: "meta.actor-access.skel",
183
- match: "\\b(via)\\s+([A-Za-z_][A-Za-z0-9_]*)",
184
- captures: {
185
- "1": {
186
- name: "keyword.declaration.via.skel"
187
- },
188
- "2": {
189
- name: "constant.language.actor-via.skel"
190
- }
191
- }
192
180
  }
193
181
  ]
194
182
  },
@@ -307,7 +295,7 @@ var skel_tmLanguage_default = {
307
295
  patterns: [
308
296
  {
309
297
  name: "keyword.control.skel",
310
- match: "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
298
+ match: "\\b(pub|api|ext|abs|domain|import|as|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|eternal|instant)\\b"
311
299
  }
312
300
  ]
313
301
  },
@@ -321,6 +309,10 @@ var skel_tmLanguage_default = {
321
309
  },
322
310
  operators: {
323
311
  patterns: [
312
+ {
313
+ name: "keyword.operator.assignment.skel",
314
+ match: "="
315
+ },
324
316
  {
325
317
  name: "keyword.operator.nullable.skel",
326
318
  match: "\\?"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorun-ai/skel-highlight",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Syntax highlighting definitions for the Skel contract language.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -140,7 +140,7 @@
140
140
  "patterns": [
141
141
  {
142
142
  "name": "meta.definition.skel",
143
- "match": "^\\s*(?:(pub|api|ext)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
143
+ "match": "^\\s*(?:(pub|api|ext|abs)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
144
144
  "captures": {
145
145
  "1": {
146
146
  "name": "storage.modifier.public.skel"
@@ -176,18 +176,6 @@
176
176
  "name": "entity.name.function.action.skel"
177
177
  }
178
178
  }
179
- },
180
- {
181
- "name": "meta.actor-access.skel",
182
- "match": "\\b(via)\\s+([A-Za-z_][A-Za-z0-9_]*)",
183
- "captures": {
184
- "1": {
185
- "name": "keyword.declaration.via.skel"
186
- },
187
- "2": {
188
- "name": "constant.language.actor-via.skel"
189
- }
190
- }
191
179
  }
192
180
  ]
193
181
  },
@@ -306,7 +294,7 @@
306
294
  "patterns": [
307
295
  {
308
296
  "name": "keyword.control.skel",
309
- "match": "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
297
+ "match": "\\b(pub|api|ext|abs|domain|import|as|for|auth|noauth|required|optional|anonymous|off|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|eternal|instant)\\b"
310
298
  }
311
299
  ]
312
300
  },
@@ -320,6 +308,10 @@
320
308
  },
321
309
  "operators": {
322
310
  "patterns": [
311
+ {
312
+ "name": "keyword.operator.assignment.skel",
313
+ "match": "="
314
+ },
323
315
  {
324
316
  "name": "keyword.operator.nullable.skel",
325
317
  "match": "\\?"