mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-06 20:37:44 +03:00
syntax: Add go & rust locals, improve tree-sitter error message
This commit is contained in:
parent
2bef245b7a
commit
4ac29434cb
5 changed files with 57 additions and 6 deletions
|
@ -144,8 +144,12 @@ impl LanguageConfiguration {
|
|||
&highlights_query,
|
||||
&injections_query,
|
||||
&locals_query,
|
||||
)
|
||||
.unwrap(); // TODO: no unwrap
|
||||
);
|
||||
|
||||
let config = match config {
|
||||
Ok(config) => config,
|
||||
Err(err) => panic!("{}", err),
|
||||
}; // TODO: avoid panic
|
||||
config.configure(scopes);
|
||||
Some(Arc::new(config))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue