aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsergio <sqmedeiros@gmail.com>2016-12-09 09:02:02 -0300
committersergio <sqmedeiros@gmail.com>2016-12-09 09:02:02 -0300
commit8e3c0330defb4b5da81f88c9b45bc5fc9361eb34 (patch)
tree39916c7f6eb06bc0ffd34fd9acd0c4941974184e
parentd946a371072cf728f90a4f3d8007288e1dc875c9 (diff)
downloadlpeglabel-8e3c0330defb4b5da81f88c9b45bc5fc9361eb34.tar.gz
lpeglabel-8e3c0330defb4b5da81f88c9b45bc5fc9361eb34.tar.bz2
lpeglabel-8e3c0330defb4b5da81f88c9b45bc5fc9361eb34.zip
Minor bug when printing a recovery pattern
-rw-r--r--lpprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpprint.c b/lpprint.c
index ff69a6a..8c488ea 100644
--- a/lpprint.c
+++ b/lpprint.c
@@ -61,7 +61,7 @@ void printinst (const Instruction *op, const Instruction *p) {
61 "choice", "jmp", "call", "open_call", 61 "choice", "jmp", "call", "open_call",
62 "commit", "partial_commit", "back_commit", "failtwice", "fail", "giveup", 62 "commit", "partial_commit", "back_commit", "failtwice", "fail", "giveup",
63 "fullcapture", "opencapture", "closecapture", "closeruntime", 63 "fullcapture", "opencapture", "closecapture", "closeruntime",
64 "throw", "labeled_choice", "recovery" /* labeled failure */ 64 "throw", "recovery" /* labeled failure */
65 }; 65 };
66 printf("%02ld: %s ", (long)(p - op), names[p->i.code]); 66 printf("%02ld: %s ", (long)(p - op), names[p->i.code]);
67 switch ((Opcode)p->i.code) { 67 switch ((Opcode)p->i.code) {