Skip to content

Commit

Permalink
Fix KWBEGIN body
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDreyer committed Oct 15, 2024
1 parent 296cc13 commit 975ee09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ruby_ast_gen (0.11.0)
ruby_ast_gen (0.14.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_ast_gen/node_handling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def self.add_node_properties(node_type, base_map, file_path)
when :begin
base_map[:body] = children
when :kwbegin
base_map[:body] = children[0]
base_map[:body] = children[0..-1]
when :case
base_map[:case_expression] = children[0]
base_map[:when_clauses] = children[1..-2]
Expand Down

0 comments on commit 975ee09

Please sign in to comment.