Skip to content

Commit

Permalink
Parser: 'All' -> 'all', remove unused rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 25, 2023
1 parent 61b2ffa commit 350f8db
Show file tree
Hide file tree
Showing 2 changed files with 14,290 additions and 19,267 deletions.
2 changes: 1 addition & 1 deletion crates/ruff_python_parser/src/python.lalrpop
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ IpyHelpEndEscapeCommandStatement: ast::Stmt = {
// We are permissive than the original implementation because we would allow whitespace
// between the expression and the suffix while the IPython implementation doesn't allow it.
// For example, `foo ?` would be valid in our case but invalid from IPython.
<location:@L> <e:Expression<"All">> <suffix:("?")+> <end_location:@R> =>? {
<location:@L> <e:Expression<"all">> <suffix:("?")+> <end_location:@R> =>? {
fn unparse_expr(expr: &ast::Expr, buffer: &mut String) -> Result<(), LexicalError> {
match expr {
ast::Expr::Name(ast::ExprName { id, .. }) => {
Expand Down
Loading

0 comments on commit 350f8db

Please sign in to comment.