aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorMichael Davis2022-02-14 23:36:02 +0000
committerBlaž Hrastnik2022-03-10 08:31:57 +0000
commitdb3470d973ed97445d180c18035c2858e4749782 (patch)
treeed79d7cd3c84b1546ea690c98c52611ea815af58 /helix-core/src
parent8081e9f0520819309fef9a3df7cad8df24126a28 (diff)
ensure rust grammar is available in CI
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/syntax.rs12
1 files changed, 4 insertions, 8 deletions
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();