ソースを参照

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.