From c1e5733b02e4ba39b82d7b330fab0b2ded2220f2 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Fri, 9 Apr 2021 17:42:37 +0900 Subject: Remove the path specifier. --- helix-core/src/indent.rs | 1 - helix-core/src/syntax.rs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'helix-core') 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, // filename ends_with? pub roots: Vec, // 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"); -- cgit v1.2.3-70-g09d2