frigg 0.4.2

Local-first MCP server for code understanding.
Documentation
#![allow(unsafe_code)]

//! Package-local tree-sitter wrappers keep the published crate self-contained without requiring
//! unpublished registry dependencies for vendored grammars.

use tree_sitter_language::LanguageFn;

pub(crate) mod tree_sitter_blade {
    use super::LanguageFn;

    unsafe extern "C" {
        fn tree_sitter_blade() -> *const ();
    }

    pub(crate) const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_blade) };
    #[allow(dead_code)]
    pub(crate) const NODE_TYPES: &str =
        include_str!("../vendor-grammars/tree-sitter-blade/src/node-types.json");
    #[allow(dead_code)]
    pub(crate) const HIGHLIGHTS_QUERY: &str =
        include_str!("../vendor-grammars/tree-sitter-blade/queries/highlights.scm");
    #[allow(dead_code)]
    pub(crate) const INJECTIONS_QUERY: &str =
        include_str!("../vendor-grammars/tree-sitter-blade/queries/injections.scm");
}

pub(crate) mod tree_sitter_nim {
    use super::LanguageFn;

    unsafe extern "C" {
        fn tree_sitter_nim() -> *const ();
    }

    pub(crate) const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_nim) };
    pub(crate) const NODE_TYPES: &str =
        include_str!("../vendor-grammars/tree-sitter-nim/src/node-types.json");
}

pub(crate) mod tree_sitter_kotlin {
    use super::LanguageFn;

    unsafe extern "C" {
        fn tree_sitter_kotlin() -> *const ();
    }

    pub(crate) const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_kotlin) };
    #[allow(dead_code)]
    pub(crate) const NODE_TYPES: &str =
        include_str!("../vendor-grammars/tree-sitter-kotlin/src/node-types.json");
    #[allow(dead_code)]
    pub(crate) const HIGHLIGHTS_QUERY: &str =
        include_str!("../vendor-grammars/tree-sitter-kotlin/queries/highlights.scm");
}

pub(crate) mod tree_sitter_roc {
    use super::LanguageFn;

    unsafe extern "C" {
        fn tree_sitter_roc() -> *const ();
    }

    pub(crate) const LANGUAGE: LanguageFn = unsafe { LanguageFn::from_raw(tree_sitter_roc) };
    pub(crate) const NODE_TYPES: &str =
        include_str!("../vendor-grammars/tree-sitter-roc/src/node-types.json");
}