lumis_wasm_diff
Tree-sitter parser for diff, packaged for Lumis.
Installation
def deps do
[
{:lumis, "~> 0.8"},
{:lumis_wasm_diff, "~> 0.26.4"}
]
end
Lumis loads only the parsers your project depends on, so adding this is what lets it highlight diff. Nothing is downloaded at runtime.
What it contains
priv/parsers/ holds the compiled WASM parser and the manifest describing it —
its size, its SHA-256, and the queries that drive highlighting. Lumis reads them
from there, and mix release carries them like any dependency's assets.
No code: this application starts nothing and supervises nothing.
Parser
| Upstream | Version | Revision |
|---|---|---|
| https://github.com/tree-sitter-grammars/tree-sitter-diff.git | 0.2.0 | ada384ac7bfc1307f32de474620120add29998fb |
Built with tree-sitter build --wasm v0.26.11.
The same parser is published to npm as
@lumis-sh/wasm-diff — byte for byte,
from one build, so both registries serve the same artifact.
License
The Lumis packaging is MIT. The parser itself is redistributed from the upstream project above; see that project for its license.