aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2010-11-22 22:22:12 +0100
committerMike Pall <mike>2010-11-22 22:22:12 +0100
commit367ff0cdaa12cfc8dcb7cb7d832998fd29500069 (patch)
tree12c0b73997683ea5ab41ef330eeaf33496644d51 /src
parentb776bf91ff9c32a15958642967a9e7ed309be06e (diff)
downloadluajit-367ff0cdaa12cfc8dcb7cb7d832998fd29500069.tar.gz
luajit-367ff0cdaa12cfc8dcb7cb7d832998fd29500069.tar.bz2
luajit-367ff0cdaa12cfc8dcb7cb7d832998fd29500069.zip
Parse '\*' escape in strings (from Lua 5.2).
Diffstat (limited to 'src')
-rw-r--r--src/lj_lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_lex.c b/src/lj_lex.c
index fde7d9ca..a115b79a 100644
--- a/src/lj_lex.c
+++ b/src/lj_lex.c
@@ -175,6 +175,11 @@ static void read_string(LexState *ls, int delim, TValue *tv)
175 c += 9; 175 c += 9;
176 } 176 }
177 break; 177 break;
178 case '*': /* Skip whitespace. */
179 next(ls);
180 while (lj_char_isspace(ls->current))
181 if (currIsNewline(ls)) inclinenumber(ls); else next(ls);
182 continue;
178 case '\n': case '\r': save(ls, '\n'); inclinenumber(ls); continue; 183 case '\n': case '\r': save(ls, '\n'); inclinenumber(ls); continue;
179 case END_OF_STREAM: continue; 184 case END_OF_STREAM: continue;
180 default: 185 default: