mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 18:58:30 +08:00
Correct carat position for unexpected } in brace expansion
before: $ echo {}}- fish: Unexpected '}' for unopened brace expansion $ ./fish -c 'echo {}}}}' fish: Unexpected '}' for unopened brace expansion echo {}}}} ^ now: $ echo {}}}}}}1- fish: Unexpected '}' for unopened brace expansion echo {}}}}}} ^
This commit is contained in:
parent
75db3b4ff4
commit
1834e962d2
|
@ -196,8 +196,8 @@ tok_t tokenizer_t::read_string() {
|
||||||
}
|
}
|
||||||
switch (brace_offsets.size()) {
|
switch (brace_offsets.size()) {
|
||||||
case 0:
|
case 0:
|
||||||
return this->call_error(tokenizer_error_t::closing_unopened_brace, this->start,
|
return this->call_error(tokenizer_error_t::closing_unopened_brace, this->buff,
|
||||||
this->buff);
|
this->start + wcslen(this->start));
|
||||||
case 1:
|
case 1:
|
||||||
mode &= ~(tok_modes::curly_braces);
|
mode &= ~(tok_modes::curly_braces);
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user