]> granicus.if.org Git - onig/commitdiff
use super-alt for absent tree
authorK.Kosako <kkosako0@gmail.com>
Sat, 29 Jul 2017 12:11:52 +0000 (21:11 +0900)
committerK.Kosako <kkosako0@gmail.com>
Sat, 29 Jul 2017 12:11:52 +0000 (21:11 +0900)
src/regparse.c

index ee32861f2cc79ff15095a3bba10d8c00cef5a32c..0644fc3502119107a930db7f228ea99cac7652f0 100644 (file)
@@ -2070,6 +2070,7 @@ make_absent_engine(Node** node, int pre_save_right_id, Node* absent,
   x = make_alt(2, ns);
   if (IS_NULL(x)) goto err;
 
+  NODE_STATUS_ADD(x, NST_SUPER);
   *node = x;
   return ONIG_NORMAL;