mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-29 06:44:49 +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;
|
is_type_alias = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Tok::Lpar | Tok::Lsqb | Tok::Lbrace => nesting += 1,
|
Tok::Lsqb => nesting += 1,
|
||||||
Tok::Rpar | Tok::Rsqb | Tok::Rbrace => nesting -= 1,
|
Tok::Rsqb => nesting -= 1,
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue