From 3aebe4e408f03d43593cc02ab45514e3dd856c33 Mon Sep 17 00:00:00 2001 From: "K.Kosako" Date: Wed, 12 Jul 2017 17:53:41 +0900 Subject: [PATCH] update for ONIG_DEBUG_PARSE_TREE --- src/regcomp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/regcomp.c b/src/regcomp.c index fc5496c..7adbe52 100644 --- a/src/regcomp.c +++ b/src/regcomp.c @@ -7222,7 +7222,7 @@ print_indent_tree(FILE* f, Node* node, int indent) fprintf(f, " ", node); switch (ENCLOSURE_(node)->type) { case ENCLOSURE_OPTION: - fprintf(f, "option:%d", ENCLOSURE_(node)->o.option); + fprintf(f, "option:%d", ENCLOSURE_(node)->o.options); break; case ENCLOSURE_MEMORY: fprintf(f, "memory:%d", ENCLOSURE_(node)->m.regnum); @@ -7241,12 +7241,18 @@ print_indent_tree(FILE* f, Node* node, int indent) case NODE_GIMMICK: fprintf(f, " ", node); switch (GIMMICK_(node)->type) { + case GIMMICK_FAIL: + fprintf(f, "fail"); + break; case GIMMICK_KEEP: fprintf(f, "keep:%d", GIMMICK_(node)->id); break; case GIMMICK_SAVE: fprintf(f, "save:%d:%d", GIMMICK_(node)->detail_type, GIMMICK_(node)->id); break; + case GIMMICK_UPDATE_VAR: + fprintf(f, "update_var:%d:%d", GIMMICK_(node)->detail_type, GIMMICK_(node)->id); + break; } break; -- 2.40.0