Avoid adjusting indentation of lines inside newly-created errors
This commit is contained in:
parent
df1e1295e3
commit
f7ceebfce3
2 changed files with 49 additions and 9 deletions
|
@ -348,6 +348,7 @@ pub struct Language {
|
|||
pub struct Grammar {
|
||||
id: usize,
|
||||
pub(crate) ts_language: tree_sitter::Language,
|
||||
pub(crate) error_query: Query,
|
||||
pub(crate) highlights_query: Option<Query>,
|
||||
pub(crate) brackets_config: Option<BracketConfig>,
|
||||
pub(crate) indents_config: Option<IndentConfig>,
|
||||
|
@ -684,6 +685,7 @@ impl Language {
|
|||
indents_config: None,
|
||||
injection_config: None,
|
||||
override_config: None,
|
||||
error_query: Query::new(ts_language, "(ERROR) @error").unwrap(),
|
||||
ts_language,
|
||||
highlight_map: Default::default(),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue