@yorun-ai/skel-highlight 0.12.0 → 0.13.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 +2 -0
- package/dist/codemirror.js +1 -0
- package/dist/highlightjs.js +1 -0
- package/dist/index.js +2 -2
- package/dist/monaco.js +1 -0
- package/dist/prism.js +1 -0
- package/dist/starry-night.js +2 -2
- package/package.json +1 -1
- package/src/skel.tmLanguage.json +2 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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 API service declarations.
|
|
6
|
+
|
|
5
7
|
Field names such as `data: list<TItem>` are distinguished from declaration keywords such as `data PageResp<TItem>` across the adapters.
|
|
6
8
|
|
|
7
9
|
Install the package with only the highlighter used by your application. All highlighter peer dependencies are optional.
|
package/dist/codemirror.js
CHANGED
package/dist/highlightjs.js
CHANGED
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)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
|
144
|
+
match: "^\\s*(?:(pub|api)\\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"
|
|
@@ -307,7 +307,7 @@ var skel_tmLanguage_default = {
|
|
|
307
307
|
patterns: [
|
|
308
308
|
{
|
|
309
309
|
name: "keyword.control.skel",
|
|
310
|
-
match: "\\b(pub|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|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"
|
|
311
311
|
}
|
|
312
312
|
]
|
|
313
313
|
},
|
package/dist/monaco.js
CHANGED
package/dist/prism.js
CHANGED
package/dist/starry-night.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)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
|
144
|
+
match: "^\\s*(?:(pub|api)\\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"
|
|
@@ -307,7 +307,7 @@ var skel_tmLanguage_default = {
|
|
|
307
307
|
patterns: [
|
|
308
308
|
{
|
|
309
309
|
name: "keyword.control.skel",
|
|
310
|
-
match: "\\b(pub|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|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"
|
|
311
311
|
}
|
|
312
312
|
]
|
|
313
313
|
},
|
package/package.json
CHANGED
package/src/skel.tmLanguage.json
CHANGED
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"patterns": [
|
|
141
141
|
{
|
|
142
142
|
"name": "meta.definition.skel",
|
|
143
|
-
"match": "^\\s*(?:(pub)\\s+)?(enum|data|config|actor|resource|service|web|event|task)\\s+([A-Za-z_][A-Za-z0-9_]*)",
|
|
143
|
+
"match": "^\\s*(?:(pub|api)\\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"
|
|
@@ -306,7 +306,7 @@
|
|
|
306
306
|
"patterns": [
|
|
307
307
|
{
|
|
308
308
|
"name": "keyword.control.skel",
|
|
309
|
-
"match": "\\b(pub|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|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
310
|
}
|
|
311
311
|
]
|
|
312
312
|
},
|