mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 06:03:49 +08:00
Minor simplification in tokenizer
This commit is contained in:
parent
dfd08a1a2c
commit
861feb7b46
|
@ -603,7 +603,7 @@ impl Tokenizer {
|
||||||
1,
|
1,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if paran_offsets.is_empty() {
|
if paran_offsets.pop().is_none() {
|
||||||
return self.call_error(
|
return self.call_error(
|
||||||
TokenizerError::closing_unopened_subshell,
|
TokenizerError::closing_unopened_subshell,
|
||||||
self.token_cursor,
|
self.token_cursor,
|
||||||
|
@ -612,7 +612,6 @@ impl Tokenizer {
|
||||||
1,
|
1,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
paran_offsets.pop();
|
|
||||||
if paran_offsets.is_empty() {
|
if paran_offsets.is_empty() {
|
||||||
mode &= !TOK_MODE_SUBSHELL;
|
mode &= !TOK_MODE_SUBSHELL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user