aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/indent.rs1
-rw-r--r--helix-core/src/syntax.rs4
2 files changed, 3 insertions, 2 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index 659783ba..ed5a8a47 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -304,7 +304,6 @@ where
language_id: Lang::Rust,
highlight_config: OnceCell::new(),
//
- path: "../helix-syntax/languages/tree-sitter-rust".into(),
roots: vec![],
language_server: None,
indent: Some(IndentationConfiguration {
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 4c890170..6e11e9b6 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -27,7 +27,7 @@ pub struct LanguageConfiguration {
pub file_types: Vec<String>, // filename ends_with? <Gemfile, rb, etc>
pub roots: Vec<String>, // these indicate project roots <.git, Cargo.toml>
- pub path: PathBuf,
+ // pub path: PathBuf,
// root_path for tree-sitter (^)
// content_regex
@@ -104,6 +104,8 @@ impl LanguageConfiguration {
let language = get_language_name(self.language_id).to_ascii_lowercase();
let highlights_query = read_query(&language, "highlights.scm");
+ // always highlight syntax errors
+ // highlights_query += "\n(ERROR) @error";
let injections_query = read_query(&language, "injections.scm");