@yorun-ai/skel-highlight 0.16.0 → 0.17.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,7 @@
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.
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.
6
6
 
7
7
  Field names such as `data: list<TItem>` are distinguished from declaration keywords such as `data PageResp<TItem>` across the adapters.
8
8
 
@@ -23,6 +23,10 @@ var controlKeywords = Object.freeze([
23
23
  "for",
24
24
  "auth",
25
25
  "noauth",
26
+ "required",
27
+ "optional",
28
+ "anonymous",
29
+ "off",
26
30
  "permission",
27
31
  "credential",
28
32
  "info",
@@ -20,6 +20,10 @@ var controlKeywords = Object.freeze([
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
23
+ "required",
24
+ "optional",
25
+ "anonymous",
26
+ "off",
23
27
  "permission",
24
28
  "credential",
25
29
  "info",
package/dist/index.js CHANGED
@@ -227,7 +227,7 @@ var skel_tmLanguage_default = {
227
227
  patterns: [
228
228
  {
229
229
  name: "meta.method-auth.skel",
230
- match: "\\b(auth|noauth)\\b",
230
+ match: "\\b(auth|noauth|required|optional|anonymous|off)\\b",
231
231
  captures: {
232
232
  "1": {
233
233
  name: "keyword.control.auth.skel"
@@ -307,7 +307,7 @@ var skel_tmLanguage_default = {
307
307
  patterns: [
308
308
  {
309
309
  name: "keyword.control.skel",
310
- match: "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
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"
311
311
  }
312
312
  ]
313
313
  },
package/dist/monaco.js CHANGED
@@ -20,6 +20,10 @@ var controlKeywords = Object.freeze([
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
23
+ "required",
24
+ "optional",
25
+ "anonymous",
26
+ "off",
23
27
  "permission",
24
28
  "credential",
25
29
  "info",
package/dist/prism.js CHANGED
@@ -20,6 +20,10 @@ var controlKeywords = Object.freeze([
20
20
  "for",
21
21
  "auth",
22
22
  "noauth",
23
+ "required",
24
+ "optional",
25
+ "anonymous",
26
+ "off",
23
27
  "permission",
24
28
  "credential",
25
29
  "info",
@@ -227,7 +227,7 @@ var skel_tmLanguage_default = {
227
227
  patterns: [
228
228
  {
229
229
  name: "meta.method-auth.skel",
230
- match: "\\b(auth|noauth)\\b",
230
+ match: "\\b(auth|noauth|required|optional|anonymous|off)\\b",
231
231
  captures: {
232
232
  "1": {
233
233
  name: "keyword.control.auth.skel"
@@ -307,7 +307,7 @@ var skel_tmLanguage_default = {
307
307
  patterns: [
308
308
  {
309
309
  name: "keyword.control.skel",
310
- match: "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
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"
311
311
  }
312
312
  ]
313
313
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorun-ai/skel-highlight",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Syntax highlighting definitions for the Skel contract language.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -226,7 +226,7 @@
226
226
  "patterns": [
227
227
  {
228
228
  "name": "meta.method-auth.skel",
229
- "match": "\\b(auth|noauth)\\b",
229
+ "match": "\\b(auth|noauth|required|optional|anonymous|off)\\b",
230
230
  "captures": {
231
231
  "1": {
232
232
  "name": "keyword.control.auth.skel"
@@ -306,7 +306,7 @@
306
306
  "patterns": [
307
307
  {
308
308
  "name": "keyword.control.skel",
309
- "match": "\\b(pub|api|ext|domain|import|as|via|for|auth|noauth|permission|credential|info|method|require|trigger|input|output|payload|resource|action|check|all|any|client|agent|openapi|eternal|instant)\\b"
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"
310
310
  }
311
311
  ]
312
312
  },