From db3470d973ed97445d180c18035c2858e4749782 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 14 Feb 2022 17:36:02 -0600 Subject: ensure rust grammar is available in CI --- helix-core/src/syntax.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'helix-core/src') diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 038fbfdd..52239d10 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -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(); -- cgit v1.2.3-70-g09d2