diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-22 10:51:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-06-22 10:51:31 -0300 |
commit | 7d43b367e7a89369c1302124677a305aa0d070c7 (patch) | |
tree | cc0a05cc02a417b9107fa68a9506f7afef667dcb /lpcap.c | |
parent | 4eb4419163dd6c97665b9481e9581ff32496b392 (diff) | |
download | lpeg-7d43b367e7a89369c1302124677a305aa0d070c7.tar.gz lpeg-7d43b367e7a89369c1302124677a305aa0d070c7.tar.bz2 lpeg-7d43b367e7a89369c1302124677a305aa0d070c7.zip |
Improved documentation for accumulator captures
Diffstat (limited to 'lpcap.c')
-rw-r--r-- | lpcap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -477,7 +477,7 @@ static int addonestring (luaL_Buffer *b, CapState *cs, const char *what) { | |||
477 | substcap(b, cs); /* add capture directly to buffer */ | 477 | substcap(b, cs); /* add capture directly to buffer */ |
478 | return 1; | 478 | return 1; |
479 | case Cacc: /* accumulator capture? */ | 479 | case Cacc: /* accumulator capture? */ |
480 | return luaL_error(cs->L, "accumulator capture inside substitution capture"); | 480 | return luaL_error(cs->L, "invalid context for an accumulator capture"); |
481 | default: { | 481 | default: { |
482 | lua_State *L = cs->L; | 482 | lua_State *L = cs->L; |
483 | int n = pushcapture(cs); | 483 | int n = pushcapture(cs); |