diff options
author | ydah <[email protected]> | 2024-09-22 00:22:59 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-09-23 09:19:37 +0900 |
commit | b811a9a097f2ce9ed9b200be84523698bc693e54 (patch) | |
tree | 86d1e684b4b6915a8b9d3eddf35bffaac4961d3b /node_dump.c | |
parent | 5334766bebcb471549b300c6e6e9cf0d08575116 (diff) |
Implement CASE3 NODE keyword locations
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11661
Diffstat (limited to 'node_dump.c')
-rw-r--r-- | node_dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node_dump.c b/node_dump.c index 9a92762e10..8f30ed2dce 100644 --- a/node_dump.c +++ b/node_dump.c @@ -281,8 +281,10 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node) ANN("format: case [nd_head]; [nd_body]; end"); ANN("example: case x; in 1; foo; in 2; bar; else baz; end"); F_NODE(nd_head, RNODE_CASE3, "case expr"); - LAST_NODE; F_NODE(nd_body, RNODE_CASE3, "in clauses"); + F_LOC(case_keyword_loc, RNODE_CASE3); + LAST_NODE; + F_LOC(end_keyword_loc, RNODE_CASE3); return; case NODE_WHEN: |