Skip to content

Commit

Permalink
Small change to obsessively match CPython AST.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwierzbicki committed Jan 15, 2009
1 parent 2ebbfef commit 2394b84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grammar/Python.g
Original file line number Diff line number Diff line change
Expand Up @@ -1412,9 +1412,9 @@ subscript returns [slice sltype]
//sliceop: ':' [test]
sliceop
: COLON
(test[expr_contextType.Load]
-> test
)?
(test[expr_contextType.Load] -> test
|-> ^(COLON<Name>[$COLON, "None", expr_contextType.Load])
)
;
//exprlist: expr (',' expr)* [',']
Expand Down

0 comments on commit 2394b84

Please sign in to comment.