aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lstrlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 057605b3..a388a0d9 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.33 1999/08/10 12:55:56 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.34 1999/08/16 20:52:00 roberto Exp roberto $
3** Standard library for strings and pattern-matching 3** Standard library for strings and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -334,12 +334,12 @@ static const char *match (const char *s, const char *p, struct Capture *cap) {
334 if (isdigit((unsigned char)(*(p+1)))) { /* capture? */ 334 if (isdigit((unsigned char)(*(p+1)))) { /* capture? */
335 s = match_capture(s, *(p+1), cap); 335 s = match_capture(s, *(p+1), cap);
336 if (s == NULL) return NULL; 336 if (s == NULL) return NULL;
337 p+=2; goto init; /* else return match(p+2, s, cap) */ 337 p+=2; goto init; /* else return match(s, p+2, cap) */
338 } 338 }
339 else if (*(p+1) == 'b') { /* balanced string? */ 339 else if (*(p+1) == 'b') { /* balanced string? */
340 s = matchbalance(s, p+2, cap); 340 s = matchbalance(s, p+2, cap);
341 if (s == NULL) return NULL; 341 if (s == NULL) return NULL;
342 p+=4; goto init; /* else return match(p+4, s, cap); */ 342 p+=4; goto init; /* else return match(s, p+4, cap); */
343 } 343 }
344 else goto dflt; /* case default */ 344 else goto dflt; /* case default */
345 case '\0': /* end of pattern */ 345 case '\0': /* end of pattern */