#![doc = include_str!("../README.md")]
use tree_sitter_language::LanguageFn;
unsafe extern "C" {
fn tree_sitter_scala() -> *const ();
}
pub const fn language() -> LanguageFn {
unsafe { LanguageFn::from_raw(tree_sitter_scala) }
}
pub const HIGHLIGHTS_QUERY: &str = include_str!("../queries/highlights.scm");
pub const INJECTIONS_QUERY: &str = "";
pub const LOCALS_QUERY: &str = include_str!("../queries/locals.scm");
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_grammar() {
arborium_test_harness::test_grammar(
language(),
"scala",
HIGHLIGHTS_QUERY,
INJECTIONS_QUERY,
LOCALS_QUERY,
env!("CARGO_MANIFEST_DIR"),
);
}
#[test]
fn test_corpus() {
arborium_test_harness::test_corpus(language(), "scala", env!("CARGO_MANIFEST_DIR"));
}
}