Skip to content

Commit 6362cdd

Browse files
simplify code in parser by adjusting root method
1 parent 2b432d6 commit 6362cdd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/code/parser/group.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def begin_keyword
3030
def root
3131
(opening_parenthesis << code << closing_parenthesis.maybe).aka(:group) |
3232
(begin_keyword << code << end_keyword.maybe).aka(:group) |
33-
(do_keyword << code << end_keyword.maybe).aka(:group) |
34-
Call
33+
(do_keyword << code << end_keyword.maybe).aka(:group) | Call
3534
end
3635
end
3736
end

0 commit comments

Comments
 (0)