mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Follow naming convention
This commit is contained in:
parent
d00e900e5a
commit
50314e309b
1 changed files with 9 additions and 9 deletions
|
@ -568,26 +568,26 @@ impl<'c> Tokenizer<'c> {
|
|||
let mut is_token_begin = true;
|
||||
|
||||
fn process_opening_quote(
|
||||
this: &mut Tokenizer,
|
||||
zelf: &mut Tokenizer,
|
||||
quoted_cmdsubs: &mut Vec<usize>,
|
||||
paran_offsets: &[usize],
|
||||
quote: char,
|
||||
) -> Result<(), usize> {
|
||||
this.on_quote_toggle
|
||||
zelf.on_quote_toggle
|
||||
.as_mut()
|
||||
.map(|cb| (cb)(this.token_cursor));
|
||||
if let Some(end) = quote_end(this.start, this.token_cursor, quote) {
|
||||
.map(|cb| (cb)(zelf.token_cursor));
|
||||
if let Some(end) = quote_end(zelf.start, zelf.token_cursor, quote) {
|
||||
let mut one_past_end = end + 1;
|
||||
if this.start.char_at(end) == '$' {
|
||||
if zelf.start.char_at(end) == '$' {
|
||||
one_past_end = end;
|
||||
quoted_cmdsubs.push(paran_offsets.len());
|
||||
}
|
||||
this.token_cursor = end;
|
||||
this.on_quote_toggle.as_mut().map(|cb| (cb)(one_past_end));
|
||||
zelf.token_cursor = end;
|
||||
zelf.on_quote_toggle.as_mut().map(|cb| (cb)(one_past_end));
|
||||
Ok(())
|
||||
} else {
|
||||
let error_loc = this.token_cursor;
|
||||
this.token_cursor = this.start.len();
|
||||
let error_loc = zelf.token_cursor;
|
||||
zelf.token_cursor = zelf.start.len();
|
||||
Err(error_loc)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue