mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 10:01:14 -03:00
Correctly detect unbalanced 'end' in syntax highlighting
This commit is contained in:
@@ -862,7 +862,7 @@ bool parse_t::parse_internal(const wcstring &str, parse_tree_flags_t parse_flags
|
||||
if (parse_flags & parse_flag_continue_after_error)
|
||||
{
|
||||
/* Mark a special error token, and then keep going */
|
||||
const parse_token_t token = {parse_special_type_parse_error, parse_keyword_none, -1, -1};
|
||||
const parse_token_t token = {parse_special_type_parse_error, parse_keyword_none, false, queue[0].source_start, queue[0].source_length};
|
||||
this->parser->accept_tokens(token, kInvalidToken);
|
||||
this->parser->reset_symbols();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user