@lumis-sh/wasm-slim 0.26.0 → 0.26.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 +2 -2
- package/index.d.ts +5 -2
- package/index.edge.js +15 -0
- package/index.js +3 -22
- package/index.workerd.js +15 -0
- package/language-package.js +22 -0
- package/lumis.json +1 -1
- package/package.json +4 -2
- package/tree-sitter-slim.wasm +0 -0
package/README.md
CHANGED
|
@@ -43,8 +43,8 @@ one build, so both registries serve the same artifact.
|
|
|
43
43
|
|
|
44
44
|
## CDN
|
|
45
45
|
|
|
46
|
-
- [https://unpkg.com/@lumis-sh/wasm-slim@0.26.
|
|
47
|
-
- [https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-slim@0.26.
|
|
46
|
+
- [https://unpkg.com/@lumis-sh/wasm-slim@0.26.1/tree-sitter-slim.wasm](https://unpkg.com/@lumis-sh/wasm-slim@0.26.1/tree-sitter-slim.wasm)
|
|
47
|
+
- [https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-slim@0.26.1/tree-sitter-slim.wasm](https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-slim@0.26.1/tree-sitter-slim.wasm)
|
|
48
48
|
|
|
49
49
|
## License
|
|
50
50
|
|
package/index.d.ts
CHANGED
|
@@ -6,8 +6,11 @@ export interface Language {
|
|
|
6
6
|
id: string
|
|
7
7
|
aliases: string[]
|
|
8
8
|
packageName: string
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The parser, which a bundler ships next to your code: a `URL`, or a
|
|
11
|
+
* `WebAssembly.Module` on Cloudflare Workers and Vercel's Edge runtime.
|
|
12
|
+
*/
|
|
13
|
+
wasm: URL | WebAssembly.Module
|
|
11
14
|
languagePackage: LanguagePackage
|
|
12
15
|
/** Grammars this language cannot highlight without, loaded along with it. */
|
|
13
16
|
requires?: Language[]
|
package/index.edge.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { languagePackage } from './language-package.js'
|
|
2
|
+
|
|
3
|
+
import wasm from './tree-sitter-slim.wasm?module'
|
|
4
|
+
|
|
5
|
+
export { languagePackage }
|
|
6
|
+
|
|
7
|
+
export const slim = {
|
|
8
|
+
id: "slim",
|
|
9
|
+
aliases: [],
|
|
10
|
+
packageName: "@lumis-sh/wasm-slim",
|
|
11
|
+
wasm,
|
|
12
|
+
languagePackage,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default slim
|
package/index.js
CHANGED
|
@@ -1,27 +1,8 @@
|
|
|
1
|
+
import { languagePackage } from './language-package.js'
|
|
2
|
+
|
|
1
3
|
const wasm = new URL('./tree-sitter-slim.wasm', import.meta.url)
|
|
2
4
|
|
|
3
|
-
export
|
|
4
|
-
"packageName": "@lumis-sh/wasm-slim",
|
|
5
|
-
"version": "0.26.0",
|
|
6
|
-
"definitionHash": "bc4564409cfd749e9325aef0fb81e501a3281963df170a83849174734a4ad4d8",
|
|
7
|
-
"parser": {
|
|
8
|
-
"name": "tree-sitter-slim",
|
|
9
|
-
"grammarName": "slim",
|
|
10
|
-
"upstreamVersion": "0.0.1",
|
|
11
|
-
"revision": "d4ff7e388eb271c04662f2176c08548c9c51078f",
|
|
12
|
-
"sha256": "b9f41a17967333915c2d5e86520b5ba1cd26cf9a46c27f99da22105fdc2b53ae",
|
|
13
|
-
"size": 196428
|
|
14
|
-
},
|
|
15
|
-
"languages": {
|
|
16
|
-
"slim": {
|
|
17
|
-
"aliases": [],
|
|
18
|
-
"highlights": "; This file is auto-generated. Do not edit.\n(comment) @comment \n\n(tag_id) @keyword.function\n\n(tag_class) @keyword.type\n\n(injector) @keyword.import\n\n(directive_sign) @keyword.directive\n\n[\n (string_start)\n (string_content)\n (string_end)\n] @string\n\n(bracket) @punctuation.bracket\n\n[\n \"#{\"\n \"}\"\n] @punctuation.special\n\n(delimiter) @tag.delimiter\n\n(parameter_name) @variable.parameter\n\n(parameter_value) @tag.attribute\n\n[\n (text_inline)\n (text_block)\n] @markup.raw.block\n\n; Markup tags\n; https://developer.mozilla.org/en-US/docs/Web/HTML/Element\n(tag_name) @tag\n\n((tag_name) @tag.builtin\n (#any-of? @tag.builtin\n \"doctype\" \"html\" \"head\" \"title\" \"base\" \"link\" \"meta\" \"style\" \"body\" \"article\" \"section\" \"nav\"\n \"aside\" \"hgroup\" \"footer\" \"address\" \"p\" \"hr\" \"pre\" \"blockquote\" \"menu\" \"figure\" \"figcaption\"\n \"main\" \"div\" \"small\" \"s\" \"cite\" \"q\" \"dfn\" \"abbr\" \"rt\" \"rp\" \"data\" \"time\" \"code\" \"var\" \"samp\"\n \"kbd\" \"sub\" \"sup\" \"u\" \"mark\" \"bdi\" \"bdo\" \"span\" \"br\" \"wbr\" \"ins\" \"del\" \"picture\" \"source\" \"img\"\n \"iframe\" \"embed\" \"object\" \"param\" \"video\" \"audio\" \"track\" \"map\" \"area\" \"table\" \"caption\"\n \"colgroup\" \"col\" \"tbody\" \"thead\" \"tfoot\" \"tr\" \"td\" \"th\" \"form\" \"label\" \"input\" \"button\" \"select\"\n \"datalist\" \"optgroup\" \"option\" \"textarea\" \"output\" \"progress\" \"meter\" \"fieldset\" \"legend\"\n \"details\" \"summary\" \"dialog\" \"script\" \"noscript\" \"template\" \"slot\" \"canvas\"))\n\n((tag_name) @markup.strong\n (#any-of? @markup.strong \"b\" \"strong\"))\n\n((tag_name) @markup.italic\n (#any-of? @markup.italic \"i\" \"em\"))\n\n((tag_name) @markup.link\n (#eq? @markup.link \"a\"))\n\n; Headings\n((tag_name) @markup.heading\n (#eq? @markup.heading \"header\"))\n\n((tag_name) @markup.heading.1\n (#eq? @markup.heading.1 \"h1\"))\n\n((tag_name) @markup.heading.2\n (#eq? @markup.heading.2 \"h2\"))\n\n((tag_name) @markup.heading.3\n (#eq? @markup.heading.3 \"h3\"))\n\n((tag_name) @markup.heading.4\n (#eq? @markup.heading.4 \"h4\"))\n\n((tag_name) @markup.heading.5\n (#eq? @markup.heading.5 \"h5\"))\n\n((tag_name) @markup.heading.6\n (#eq? @markup.heading.6 \"h6\"))\n\n((tag_name) @markup.list\n (#any-of? @markup.list \"ul\" \"ol\" \"li\" \"dl\" \"dt\" \"dd\"))",
|
|
19
|
-
"injections": "; This file is auto-generated. Do not edit.\n((ruby_inline) @injection.content\n (#set! injection.language \"ruby\"))\n\n((ruby_lang) @injection.content\n (#set! injection.language \"ruby\")\n (#set! injection.combined))\n\n((javascript_lang) @injection.content\n (#set! injection.language \"javascript\")\n (#set! injection.combined))\n\n((css_lang) @injection.content\n (#set! injection.language \"css\")\n (#set! injection.combined))\n\n((sass_lang) @injection.content\n (#set! injection.language \"sass\")\n (#set! injection.combined))\n\n((scss_lang) @injection.content\n (#set! injection.language \"scss\")\n (#set! injection.combined))\n\n((less_lang) @injection.content\n (#set! injection.language \"less\")\n (#set! injection.combined))\n\n((scss_lang) @injection.content\n (#set! injection.language \"scss\")\n (#set! injection.combined))\n\n((markdown_lang) @injection.content\n (#set! injection.language \"markdown\"))\n\n((rdoc_lang) @injection.content\n (#set! injection.language \"rdoc\"))\n\n((comment) @injection.content\n (#set! injection.language \"comment\"))",
|
|
20
|
-
"locals": "; This file is auto-generated. Do not edit.\n(child) @local.scope\n\n(tag_name) @local.definition.function\n\n(tag_class) @local.definition.parameter\n\n(tag_id) @local.definition.constant",
|
|
21
|
-
"brackets": "; This file is auto-generated. Do not edit.\n(\"(\" @open\n \")\" @close)\n\n(\"[\" @open\n \"]\" @close)\n\n(\"{\" @open\n \"}\" @close)\n"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
5
|
+
export { languagePackage }
|
|
25
6
|
|
|
26
7
|
export const slim = {
|
|
27
8
|
id: "slim",
|
package/index.workerd.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { languagePackage } from './language-package.js'
|
|
2
|
+
|
|
3
|
+
import wasm from './tree-sitter-slim.wasm'
|
|
4
|
+
|
|
5
|
+
export { languagePackage }
|
|
6
|
+
|
|
7
|
+
export const slim = {
|
|
8
|
+
id: "slim",
|
|
9
|
+
aliases: [],
|
|
10
|
+
packageName: "@lumis-sh/wasm-slim",
|
|
11
|
+
wasm,
|
|
12
|
+
languagePackage,
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default slim
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const languagePackage = {
|
|
2
|
+
"packageName": "@lumis-sh/wasm-slim",
|
|
3
|
+
"version": "0.26.1",
|
|
4
|
+
"definitionHash": "bc4564409cfd749e9325aef0fb81e501a3281963df170a83849174734a4ad4d8",
|
|
5
|
+
"parser": {
|
|
6
|
+
"name": "tree-sitter-slim",
|
|
7
|
+
"grammarName": "slim",
|
|
8
|
+
"upstreamVersion": "0.0.1",
|
|
9
|
+
"revision": "d4ff7e388eb271c04662f2176c08548c9c51078f",
|
|
10
|
+
"sha256": "b9f41a17967333915c2d5e86520b5ba1cd26cf9a46c27f99da22105fdc2b53ae",
|
|
11
|
+
"size": 196428
|
|
12
|
+
},
|
|
13
|
+
"languages": {
|
|
14
|
+
"slim": {
|
|
15
|
+
"aliases": [],
|
|
16
|
+
"highlights": "; This file is auto-generated. Do not edit.\n(comment) @comment \n\n(tag_id) @keyword.function\n\n(tag_class) @keyword.type\n\n(injector) @keyword.import\n\n(directive_sign) @keyword.directive\n\n[\n (string_start)\n (string_content)\n (string_end)\n] @string\n\n(bracket) @punctuation.bracket\n\n[\n \"#{\"\n \"}\"\n] @punctuation.special\n\n(delimiter) @tag.delimiter\n\n(parameter_name) @variable.parameter\n\n(parameter_value) @tag.attribute\n\n[\n (text_inline)\n (text_block)\n] @markup.raw.block\n\n; Markup tags\n; https://developer.mozilla.org/en-US/docs/Web/HTML/Element\n(tag_name) @tag\n\n((tag_name) @tag.builtin\n (#any-of? @tag.builtin\n \"doctype\" \"html\" \"head\" \"title\" \"base\" \"link\" \"meta\" \"style\" \"body\" \"article\" \"section\" \"nav\"\n \"aside\" \"hgroup\" \"footer\" \"address\" \"p\" \"hr\" \"pre\" \"blockquote\" \"menu\" \"figure\" \"figcaption\"\n \"main\" \"div\" \"small\" \"s\" \"cite\" \"q\" \"dfn\" \"abbr\" \"rt\" \"rp\" \"data\" \"time\" \"code\" \"var\" \"samp\"\n \"kbd\" \"sub\" \"sup\" \"u\" \"mark\" \"bdi\" \"bdo\" \"span\" \"br\" \"wbr\" \"ins\" \"del\" \"picture\" \"source\" \"img\"\n \"iframe\" \"embed\" \"object\" \"param\" \"video\" \"audio\" \"track\" \"map\" \"area\" \"table\" \"caption\"\n \"colgroup\" \"col\" \"tbody\" \"thead\" \"tfoot\" \"tr\" \"td\" \"th\" \"form\" \"label\" \"input\" \"button\" \"select\"\n \"datalist\" \"optgroup\" \"option\" \"textarea\" \"output\" \"progress\" \"meter\" \"fieldset\" \"legend\"\n \"details\" \"summary\" \"dialog\" \"script\" \"noscript\" \"template\" \"slot\" \"canvas\"))\n\n((tag_name) @markup.strong\n (#any-of? @markup.strong \"b\" \"strong\"))\n\n((tag_name) @markup.italic\n (#any-of? @markup.italic \"i\" \"em\"))\n\n((tag_name) @markup.link\n (#eq? @markup.link \"a\"))\n\n; Headings\n((tag_name) @markup.heading\n (#eq? @markup.heading \"header\"))\n\n((tag_name) @markup.heading.1\n (#eq? @markup.heading.1 \"h1\"))\n\n((tag_name) @markup.heading.2\n (#eq? @markup.heading.2 \"h2\"))\n\n((tag_name) @markup.heading.3\n (#eq? @markup.heading.3 \"h3\"))\n\n((tag_name) @markup.heading.4\n (#eq? @markup.heading.4 \"h4\"))\n\n((tag_name) @markup.heading.5\n (#eq? @markup.heading.5 \"h5\"))\n\n((tag_name) @markup.heading.6\n (#eq? @markup.heading.6 \"h6\"))\n\n((tag_name) @markup.list\n (#any-of? @markup.list \"ul\" \"ol\" \"li\" \"dl\" \"dt\" \"dd\"))",
|
|
17
|
+
"injections": "; This file is auto-generated. Do not edit.\n((ruby_inline) @injection.content\n (#set! injection.language \"ruby\"))\n\n((ruby_lang) @injection.content\n (#set! injection.language \"ruby\")\n (#set! injection.combined))\n\n((javascript_lang) @injection.content\n (#set! injection.language \"javascript\")\n (#set! injection.combined))\n\n((css_lang) @injection.content\n (#set! injection.language \"css\")\n (#set! injection.combined))\n\n((sass_lang) @injection.content\n (#set! injection.language \"sass\")\n (#set! injection.combined))\n\n((scss_lang) @injection.content\n (#set! injection.language \"scss\")\n (#set! injection.combined))\n\n((less_lang) @injection.content\n (#set! injection.language \"less\")\n (#set! injection.combined))\n\n((scss_lang) @injection.content\n (#set! injection.language \"scss\")\n (#set! injection.combined))\n\n((markdown_lang) @injection.content\n (#set! injection.language \"markdown\"))\n\n((rdoc_lang) @injection.content\n (#set! injection.language \"rdoc\"))\n\n((comment) @injection.content\n (#set! injection.language \"comment\"))",
|
|
18
|
+
"locals": "; This file is auto-generated. Do not edit.\n(child) @local.scope\n\n(tag_name) @local.definition.function\n\n(tag_class) @local.definition.parameter\n\n(tag_id) @local.definition.constant",
|
|
19
|
+
"brackets": "; This file is auto-generated. Do not edit.\n(\"(\" @open\n \")\" @close)\n\n(\"[\" @open\n \"]\" @close)\n\n(\"{\" @open\n \"}\" @close)\n"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/lumis.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumis-sh/wasm-slim",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"description": "Tree-sitter parser and queries for slim, compiled to WASM for Lumis",
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
|
+
"workerd": "./index.workerd.js",
|
|
18
|
+
"edge-light": "./index.edge.js",
|
|
17
19
|
"default": "./index.js"
|
|
18
20
|
},
|
|
19
21
|
"./tree-sitter-slim.wasm": "./tree-sitter-slim.wasm",
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
},
|
|
22
24
|
"lumis": {
|
|
23
25
|
"treeSitter": "0.26",
|
|
24
|
-
"formatVersion":
|
|
26
|
+
"formatVersion": 5,
|
|
25
27
|
"definitionHash": "bc4564409cfd749e9325aef0fb81e501a3281963df170a83849174734a4ad4d8"
|
|
26
28
|
},
|
|
27
29
|
"peerDependencies": {
|
package/tree-sitter-slim.wasm
CHANGED
|
File without changes
|