ensure rust grammar is available in CI

This commit is contained in:
Michael Davis 2022-02-14 17:36:02 -06:00 committed by Blaž Hrastnik
parent 8081e9f052
commit db3470d973
4 changed files with 66 additions and 24 deletions

View file

@ -2115,14 +2115,10 @@ mod test {
let language = get_language(&crate::RUNTIME_DIR, "Rust").unwrap();
let config = HighlightConfiguration::new(
language,
&std::fs::read_to_string(
"../helix-syntax/languages/tree-sitter-rust/queries/highlights.scm",
)
.unwrap(),
&std::fs::read_to_string(
"../helix-syntax/languages/tree-sitter-rust/queries/injections.scm",
)
.unwrap(),
&std::fs::read_to_string("../runtime/grammars/sources/rust/queries/highlights.scm")
.unwrap(),
&std::fs::read_to_string("../runtime/grammars/sources/rust/queries/injections.scm")
.unwrap(),
"", // locals.scm
)
.unwrap();