mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-14 07:02:47 +08:00
Minor formatting fixes
This commit is contained in:
parent
67ccbdae96
commit
3a6e87744b
|
@ -379,7 +379,7 @@ impl<'c> Iterator for Tokenizer<'c> {
|
||||||
let mut result = Tok::new(TokenType::end);
|
let mut result = Tok::new(TokenType::end);
|
||||||
result.offset = start_pos as u32;
|
result.offset = start_pos as u32;
|
||||||
result.length = 1;
|
result.length = 1;
|
||||||
self.token_cursor+=1;
|
self.token_cursor += 1;
|
||||||
// Hack: when we get a newline, swallow as many as we can. This compresses multiple
|
// Hack: when we get a newline, swallow as many as we can. This compresses multiple
|
||||||
// subsequent newlines into a single one.
|
// subsequent newlines into a single one.
|
||||||
if !self.show_blank_lines {
|
if !self.show_blank_lines {
|
||||||
|
@ -388,7 +388,7 @@ impl<'c> Iterator for Tokenizer<'c> {
|
||||||
if c != '\n' && c != '\r' && c != ' ' && c != '\t' {
|
if c != '\n' && c != '\r' && c != ' ' && c != '\t' {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
self.token_cursor+=1;
|
self.token_cursor += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Some(result)
|
Some(result)
|
||||||
|
@ -414,7 +414,7 @@ impl<'c> Iterator for Tokenizer<'c> {
|
||||||
let mut result = Tok::new(TokenType::background);
|
let mut result = Tok::new(TokenType::background);
|
||||||
result.offset = start_pos as u32;
|
result.offset = start_pos as u32;
|
||||||
result.length = 1;
|
result.length = 1;
|
||||||
self.token_cursor+=1;
|
self.token_cursor += 1;
|
||||||
Some(result)
|
Some(result)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user