tree-sitter-htmlx-html 0.1.13

Tree-sitter grammar for HTML following the WHATWG HTML Living Standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Build script for tree-sitter-html.
//!
//! Keep this crate self-contained for crates.io/git/path consumers: compile
//! committed C sources only and do not require tree-sitter-cli downstream.

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

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