devup-editor-syntax-highlight 1.0.23

Tree-sitter based syntax highlighting for devup-editor code blocks
Documentation
[package]
name = "devup-editor-syntax-highlight"
description = "Tree-sitter based syntax highlighting for devup-editor code blocks"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true

[lints.rust]
unsafe_code = "warn"

[lints.clippy]
all = "warn"
pedantic = "warn"

[dependencies]
# arborium is the only tree-sitter wrapper that compiles cleanly to
# wasm32-unknown-unknown (it ships its own libc-free sysroot via
# `arborium-sysroot`). We enable grammars via explicit lang-* features
# to keep the WASM binary size in check. MVP: Rust + TS/JS only.
#
# DO NOT enable `all-languages` — the parse tables add ~1.2 MB gzipped
# for all 100+ grammars. See
# `.sisyphus/plans/tier-a-benchmark-decisions.md` for the full bundle
# budget discussion.
arborium = { version = "2.16", default-features = false, features = [
    "lang-rust",
    "lang-typescript",
    "lang-javascript",
    "lang-python",
    "lang-json",
    "lang-bash",
    "lang-html",
    "lang-css",
    "lang-markdown",
    "lang-sql",
    # NOTE: TSX/JSX grammars are NOT enabled. tree-sitter-tsx ships
    # its own parse tables (doesn't inherit JS/TS parser) so it
    # doubles the TypeScript size footprint. For the MVP we map
    # `tsx`/`jsx` to the JavaScript grammar; see normalize_language
    # in src/lib.rs. Users get reasonable highlighting minus the
    # JSX-specific refinements until a follow-up enables `lang-tsx`.
] }