Roberto Ierusalimschy 23 년 전
부모
커밋
b217ae644e
1개의 변경된 파일1개의 추가작업 그리고 7개의 파일을 삭제
  1. 1 7
      llex.c

+ 1 - 7
llex.c

@@ -209,7 +209,7 @@ static void read_long_string (LexState *LS, SemInfo *seminfo) {
     switch (LS->current) {
       case EOZ:
         save(L, '\0', l);
-        luaX_error(LS, "unfinished long string", TK_STRING);
+        luaX_error(LS, "unfinished long string", TK_EOS);
         break;  /* to avoid warnings */
       case '[':
         save_and_next(L, LS, l);
@@ -304,12 +304,6 @@ int luaX_lex (LexState *LS, SemInfo *seminfo) {
         inclinenumber(LS);
         continue;
 
-      case '$':
-        luaX_error(LS,
-                   "unexpected `$' (pragmas are no longer supported)",
-                   LS->current);
-        break;
-
       case '-':
         next(LS);
         if (LS->current != '-') return '-';