summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'node.c')
-rw-r--r--node.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/node.c b/node.c
index 0222a19af1..a0544d7a7a 100644
--- a/node.c
+++ b/node.c
@@ -200,6 +200,16 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
F_NODE(nd_else, "else clause");
break;
+ case NODE_UNLESS:
+ ANN("unless statement");
+ ANN("format: unless [nd_cond] then [nd_body] else [nd_else] end");
+ ANN("example: unless x == 1 then foo else bar end");
+ F_NODE(nd_cond, "condition expr");
+ F_NODE(nd_body, "then clause");
+ LAST_NODE;
+ F_NODE(nd_else, "else clause");
+ break;
+
case NODE_CASE:
ANN("case statement");
ANN("format: case [nd_head]; [nd_body]; end");