mirror of https://github.com/astral-sh/ruff
Eat for comma.
This commit is contained in:
parent
38cf933bcb
commit
c9364718b4
|
|
@ -1039,10 +1039,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
',' => {
|
',' => {
|
||||||
let tok_start = self.get_pos();
|
self.eat_single_char(Tok::Comma);
|
||||||
self.next_char();
|
|
||||||
let tok_end = self.get_pos();
|
|
||||||
self.emit((tok_start, Tok::Comma, tok_end));
|
|
||||||
}
|
}
|
||||||
'.' => {
|
'.' => {
|
||||||
if let Some('0'..='9') = self.window[1] {
|
if let Some('0'..='9') = self.window[1] {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue