Explorar o código

Merge pull request #49 from valexey/patch-1

Added const as reserved js word
vladfolts %!s(int64=10) %!d(string=hai) anos
pai
achega
ce5a1de9bd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/ob/Lexer.ob

+ 2 - 2
src/ob/Lexer.ob

@@ -9,7 +9,7 @@ CONST
     jsReservedWords 
     jsReservedWords 
         = "break case catch continue debugger default delete do else finally "
         = "break case catch continue debugger default delete do else finally "
         + "for function if in instanceof new return switch this throw try typeof "
         + "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 "
         + "import super implements interface let package private protected "
         + "public static yield "
         + "public static yield "
         + "Math" (* Math is used in generated code for some functions so it is 
         + "Math" (* Math is used in generated code for some functions so it is 
@@ -221,4 +221,4 @@ BEGIN
     RETURN result
     RETURN result
 END literal;
 END literal;
 
 
-END Lexer.
+END Lexer.