aboutsummaryrefslogtreecommitdiff
path: root/lpprint.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-15 11:28:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-15 11:28:33 -0300
commita561630f17e61548193666abf9a8b20f20462558 (patch)
treeb1ffda7472f2c801bb7677239b42b0e09b1ceec9 /lpprint.h
parentcf1705c1d96b549ef5887a2bc3038dbc31912e50 (diff)
downloadlpeg-a561630f17e61548193666abf9a8b20f20462558.tar.gz
lpeg-a561630f17e61548193666abf9a8b20f20462558.tar.bz2
lpeg-a561630f17e61548193666abf9a8b20f20462558.zip
Full captures can contain nested captures
Nested captures can be recognized because they start (and end) inside the character range of the full capture. This optimization can remove a lot of 'close' captures from the capture logs.
Diffstat (limited to 'lpprint.h')
-rw-r--r--lpprint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lpprint.h b/lpprint.h
index aafdafc..e8e04e8 100644
--- a/lpprint.h
+++ b/lpprint.h
@@ -22,7 +22,7 @@ void printinst (const Instruction *op, const Instruction *p);
22 luaL_error(L, "function only implemented in debug mode") 22 luaL_error(L, "function only implemented in debug mode")
23#define printtree(tree,i) \ 23#define printtree(tree,i) \
24 luaL_error(L, "function only implemented in debug mode") 24 luaL_error(L, "function only implemented in debug mode")
25#define printpatt(p,n) \ 25#define printpatt(p) \
26 luaL_error(L, "function only implemented in debug mode") 26 luaL_error(L, "function only implemented in debug mode")
27 27
28#endif 28#endif