aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/syntax.rs
diff options
context:
space:
mode:
authorKirawi2021-07-08 16:11:20 +0000
committerGitHub2021-07-08 16:11:20 +0000
commit084a8a952292521f1f7b7f4144e6823c29b85507 (patch)
tree62852ff04ab17d70d39b513ea8b45ed62ace6200 /helix-core/src/syntax.rs
parentc7aa7bf4baf8e0ac4eca3ebdca065ab2a7bea95c (diff)
Rewritten Rust `highlights.scm` (#425)
* rewrote Rust highlights.scm * wip * wip * wip * wip * fixed type highlighting * wip * rewrite again * moved operators * missing newline * missing newline * update book * fix constructor highlighting * fix constructor highlighting * fix const highlighting * better constructor highlighting * remove dup, bug was my locals.scm file * fixed docs * merge * fixed for highlighting * add yield * remove yield * added yield back * fixed yield highlighting * unecessary
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r--helix-core/src/syntax.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 5b45a88f..833ccfb9 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -161,7 +161,7 @@ impl LanguageConfiguration {
let injections_query = read_query(&language, "injections.scm");
- let locals_query = "";
+ let locals_query = read_query(&language, "locals.scm");
if highlights_query.is_empty() {
None
@@ -171,7 +171,7 @@ impl LanguageConfiguration {
language,
&highlights_query,
&injections_query,
- locals_query,
+ &locals_query,
)
.unwrap(); // TODO: no unwrap
config.configure(scopes);