Skip to content

Commit

Permalink
Fix bug with parsing dict.
Browse files Browse the repository at this point in the history
  • Loading branch information
akshanshbhatt committed Aug 5, 2022
1 parent cf7f6a7 commit d49df45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lpython/parser/parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ expr_list

dict
: expr ":" expr { $$ = DICT_EXPR($1, $3, @$); }
| expr ":" TK_NEWLINE expr { $$ = DICT_EXPR($1, $4, @$); }
;

dict_list
Expand Down

0 comments on commit d49df45

Please sign in to comment.