diff options
| -rw-r--r-- | llex.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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; |
