aboutsummaryrefslogtreecommitdiff
path: root/lptree.c
diff options
context:
space:
mode:
authorSergio Queiroz <sqmedeiros@gmail.com>2016-07-14 15:40:54 -0300
committerSergio Queiroz <sqmedeiros@gmail.com>2016-07-14 15:40:54 -0300
commita0891e8f58c5ea1ab777bf607949237894249907 (patch)
tree5bab86939508a40fbd3e8dbecfc398a268f64af3 /lptree.c
parentb764048fc85902100bdd26a68f83fb44098a97d3 (diff)
downloadlpeglabel-a0891e8f58c5ea1ab777bf607949237894249907.tar.gz
lpeglabel-a0891e8f58c5ea1ab777bf607949237894249907.tar.bz2
lpeglabel-a0891e8f58c5ea1ab777bf607949237894249907.zip
Fixing a bug in lptree and testing the recovery operator
Diffstat (limited to 'lptree.c')
-rw-r--r--lptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lptree.c b/lptree.c
index c59f443..2044a5c 100644
--- a/lptree.c
+++ b/lptree.c
@@ -1089,7 +1089,7 @@ static int verifyrule (lua_State *L, TTree *tree, int *passed, int npassed,
1089 return nb; 1089 return nb;
1090 /* else return verifyrule(L, sib2(tree), passed, npassed, nb); */ 1090 /* else return verifyrule(L, sib2(tree), passed, npassed, nb); */
1091 tree = sib2(tree); goto tailcall; 1091 tree = sib2(tree); goto tailcall;
1092 case TChoice: case TLabChoice: /* must check both children */ /* labeled failure */ 1092 case TChoice: case TLabChoice: case TRecov: /* must check both children */ /* labeled failure */
1093 nb = verifyrule(L, sib1(tree), passed, npassed, nb); 1093 nb = verifyrule(L, sib1(tree), passed, npassed, nb);
1094 /* return verifyrule(L, sib2(tree), passed, npassed, nb); */ 1094 /* return verifyrule(L, sib2(tree), passed, npassed, nb); */
1095 tree = sib2(tree); goto tailcall; 1095 tree = sib2(tree); goto tailcall;