summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorydah <[email protected]>2024-09-22 00:13:16 +0900
committerYuichiro Kaneko <[email protected]>2024-09-23 09:19:37 +0900
commitfeac2b4b77b337a637d80793c53b680e5697cab6 ()
tree60fee0d4bd0bb523aa24935abf9ec8a4a73a6b89 /ast.c
parent02b36f75721aa61d48e3031c71695837d7a8a410 (diff)
Implement CASE NODE keyword locations
Notes: Merged: https://.com/ruby/ruby/pull/11661
-rw-r--r--ast.c5
1 files changed, 5 insertions, 0 deletions
@@ -787,6 +787,11 @@ node_locations(VALUE ast_value, const NODE *node)
return rb_ary_new_from_args(2,
location_new(nd_code_loc(node)),
location_new(&RNODE_BREAK(node)->keyword_loc));
case NODE_NEXT:
return rb_ary_new_from_args(2,
location_new(nd_code_loc(node)),