#![doc = include_str!("../README.md")]

use arborium_tree_sitter::Language;

unsafe extern "C" {
    fn tree_sitter_dockerfile() -> Language;
}

/// Returns the dockerfile tree-sitter language.
pub fn language() -> Language {
    unsafe { tree_sitter_dockerfile() }
}



/// The highlights query for dockerfile.
pub const HIGHLIGHTS_QUERY: &str = include_str!("../queries/highlights.scm");




/// The injections query for dockerfile (empty - no injections available).
pub const INJECTIONS_QUERY: &str = "";



/// The locals query for dockerfile (empty - no locals available).
pub const LOCALS_QUERY: &str = "";



#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_grammar() {
        arborium_test_harness::test_grammar(
            language(),
            "dockerfile",

            HIGHLIGHTS_QUERY,

            INJECTIONS_QUERY,
            LOCALS_QUERY,
            env!("CARGO_MANIFEST_DIR"),
        );
    }
}
