diff options
author | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-07-14 15:40:54 -0300 |
---|---|---|
committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2016-07-14 15:40:54 -0300 |
commit | a0891e8f58c5ea1ab777bf607949237894249907 (patch) | |
tree | 5bab86939508a40fbd3e8dbecfc398a268f64af3 /lptree.c | |
parent | b764048fc85902100bdd26a68f83fb44098a97d3 (diff) | |
download | lpeglabel-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |