Skip to content

Commit

Permalink
fix p_case_clause bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cymotive-eldad-sitbon authored and idank committed Apr 7, 2024
1 parent d8657c6 commit 9595d79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bashlex/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,8 @@ def p_case_clause(p):
if len(p) == 2:
p[0] = [p[1]]
else:
p[0].extend(p[2])
p[0] = p[1]
p[0].append(p[2])

def p_pattern_list(p):
'''pattern_list : newline_list pattern RIGHT_PAREN compound_list
Expand Down

0 comments on commit 9595d79

Please sign in to comment.