소스 검색

Added const as reserved js word

Added const as reserved js word
valexey 10 년 전
부모
커밋
278fcdd41a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ob/Lexer.ob

+ 2 - 2
src/ob/Lexer.ob

@@ -9,7 +9,7 @@ CONST
     jsReservedWords 
         = "break case catch continue debugger default delete do else finally "
         + "for function if in instanceof new return switch this throw try typeof "
-        + "var void while with false true null class enum export extends "
+        + "var void while with false true null class enum export extends const"
         + "import super implements interface let package private protected "
         + "public static yield "
         + "Math" (* Math is used in generated code for some functions so it is 
@@ -221,4 +221,4 @@ BEGIN
     RETURN result
 END literal;
 
-END Lexer.
+END Lexer.