diff options
author | Blaž Hrastnik | 2021-09-06 09:13:52 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-06 09:13:52 +0000 |
commit | 4ac29434cb99b517dba3752a287c0edfe8679e7e (patch) | |
tree | 7d7c7e224f5313bf38ea0fb8fdfcb87f2b44b7ae /helix-core/src | |
parent | 2bef245b7a1ae11f023d3e3aa82df250a3488d91 (diff) |
syntax: Add go & rust locals, improve tree-sitter error message
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/syntax.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index a7a5d022..1afe0e25 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -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)) } |