mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-28 14:25:43 +00:00
Fix newline indentation
This commit is contained in:
parent
4170b22b7d
commit
8c81332205
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ where
|
||||||
let mut seen_equal = false;
|
let mut seen_equal = false;
|
||||||
while let Some(Ok((tok, _))) = self.underlying.peek() {
|
while let Some(Ok((tok, _))) = self.underlying.peek() {
|
||||||
match tok {
|
match tok {
|
||||||
Tok::Newline => break,
|
Tok::Newline => break,
|
||||||
Tok::Name { .. } |
|
Tok::Name { .. } |
|
||||||
// We treat a soft keyword token following a type token as a
|
// We treat a soft keyword token following a type token as a
|
||||||
// name to support cases like `type type = int` or `type match = int`
|
// name to support cases like `type type = int` or `type match = int`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue