Explorar o código

error message compatible with incomplete lines of lua.c

Roberto Ierusalimschy %!s(int64=23) %!d(string=hai) anos
pai
achega
57a7baafb9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      llex.c

+ 1 - 1
llex.c

@@ -250,7 +250,7 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) {
     switch (LS->current) {
       case EOZ:  case '\n':
         save(L, '\0', l);
-        luaX_error(LS, "unfinished string", TK_STRING);
+        luaX_error(LS, "unfinished string", TK_EOS);
         break;  /* to avoid warnings */
       case '\\':
         next(LS);  /* do not save the `\' */