tree-sitter-htmlx 0.1.8

Tree-sitter grammar for HTMLX (expression-enhanced HTML)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Build script for tree-sitter-htmlx.
//!
//! Keep this crate self-contained for crates.io/git/path consumers: compile
//! committed C sources only and do not read sibling workspace crates.

fn main() {
    println!("cargo:rerun-if-changed=src/parser.c");
    println!("cargo:rerun-if-changed=src/scanner.c");
    println!("cargo:rerun-if-changed=src/html/scanner.c");
    println!("cargo:rerun-if-changed=src/html/tag.h");

    cc::Build::new()
        .include("src")
        .file("src/parser.c")
        .file("src/scanner.c")
        .warnings(false)
        .compile("tree_sitter_htmlx");
}