@lumis-sh/wasm-luadoc
v0.26.3
Published
Tree-sitter parser and queries for luadoc, compiled to WASM for Lumis
Readme
@lumis-sh/wasm-luadoc
Self-contained Lumis language package for luadoc.
The Tree-sitter parser is compiled to WASM and ships with the queries that highlight it.
Built with tree-sitter build --wasm v0.26.11
Used by Lumis and compatible with web-tree-sitter v0.26 and other WASM runtimes.
Installation
npm install @lumis-sh/wasm-luadocUsage
The package exports the language, ready for Lumis, in Node and in a browser:
import { createHighlighter } from '@lumis-sh/lumis'
import luadoc from '@lumis-sh/wasm-luadoc'
const highlighter = await createHighlighter({ languages: [luadoc] })What it contains
tree-sitter-luadoc.wasm is the parser. lumis.json describes it and records its size, its SHA-256 and the queries.
Node reads both from the installed package, and a bundler ships them with your code, so nothing is downloaded at runtime.
Parser
| Parser | Version | Rev | | ------ | ------- | --- | | https://github.com/tree-sitter-grammars/tree-sitter-luadoc.git | 1.1.0 | 873612aadd3f684dd4e631bdf42ea8990c57634e |
The same parser is published to Hex as
lumis_wasm_luadoc — byte for byte, from
one build, so both registries serve the same artifact.
CDN
- https://unpkg.com/@lumis-sh/[email protected]/tree-sitter-luadoc.wasm
- https://cdn.jsdelivr.net/npm/@lumis-sh/[email protected]/tree-sitter-luadoc.wasm
License
The Lumis packaging is MIT. The parser itself is redistributed from the upstream project above; see that project for its license.
