diff options
author | Blaž Hrastnik | 2021-04-09 08:42:37 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-04-09 09:57:46 +0000 |
commit | c1e5733b02e4ba39b82d7b330fab0b2ded2220f2 (patch) | |
tree | d11a5b6165efaf21be15e397b5fc964fef12630b /helix-core | |
parent | 61872de6c05f060a7e854ed1bcb7347a793c2e3a (diff) |
Remove the path specifier.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/indent.rs | 1 | ||||
-rw-r--r-- | helix-core/src/syntax.rs | 4 |
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"); |