aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-07-05 16:13:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-07-05 16:13:45 -0300
commitd8200d5f3c65c371e28d75b6742ed2cb8fc9dba0 (patch)
tree5bb00cd503fcb044e66c3463589db2464a8a8190 /llex.c
parent79cbc3468caeab89b1c8492d54e1c28e7aafd1ed (diff)
downloadlua-d8200d5f3c65c371e28d75b6742ed2cb8fc9dba0.tar.gz
lua-d8200d5f3c65c371e28d75b6742ed2cb8fc9dba0.tar.bz2
lua-d8200d5f3c65c371e28d75b6742ed2cb8fc9dba0.zip
'\*' -> '\z' + '\?' is not an official escape sequence
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index b27d74e8..090723f5 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 2.48 2011/06/15 14:35:55 roberto Exp roberto $ 2** $Id: llex.c,v 2.49 2011/06/23 14:54:48 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -354,7 +354,7 @@ static void read_string (LexState *ls, int del, SemInfo *seminfo) {
354 case '\n': 354 case '\n':
355 case '\r': save(ls, '\n'); inclinenumber(ls); continue; 355 case '\r': save(ls, '\n'); inclinenumber(ls); continue;
356 case EOZ: continue; /* will raise an error next loop */ 356 case EOZ: continue; /* will raise an error next loop */
357 case '*': { /* skip following span of spaces */ 357 case 'z': { /* zap following span of spaces */
358 next(ls); /* skip the '*' */ 358 next(ls); /* skip the '*' */
359 while (lisspace(ls->current)) { 359 while (lisspace(ls->current)) {
360 if (currIsNewline(ls)) inclinenumber(ls); 360 if (currIsNewline(ls)) inclinenumber(ls);
@@ -364,7 +364,7 @@ static void read_string (LexState *ls, int del, SemInfo *seminfo) {
364 } 364 }
365 default: { 365 default: {
366 if (!lisdigit(ls->current)) 366 if (!lisdigit(ls->current))
367 c = ls->current; /* handles \\, \", \', and \? */ 367 c = ls->current; /* handles \\, \", and \' */
368 else /* digital escape \ddd */ 368 else /* digital escape \ddd */
369 c = readdecesc(ls); 369 c = readdecesc(ls);
370 break; 370 break;