mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-28 14:25:43 +00:00
Drop support for parsing type aliases with parens and braces
This commit is contained in:
parent
fcdd605f74
commit
b2d67c70f3
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ where
|
|||
is_type_alias = true;
|
||||
break;
|
||||
}
|
||||
Tok::Lpar | Tok::Lsqb | Tok::Lbrace => nesting += 1,
|
||||
Tok::Rpar | Tok::Rsqb | Tok::Rbrace => nesting -= 1,
|
||||
Tok::Lsqb => nesting += 1,
|
||||
Tok::Rsqb => nesting -= 1,
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue