contrib/jwrapper: add missing keywords to mangle
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 22 Jul 2015 13:59:07 +0000 (09:59 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 24 Jul 2015 13:44:24 +0000 (09:44 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/jwrapper/src/code_generator.nit

index d7bf223..1d72739 100644 (file)
@@ -237,10 +237,10 @@ redef class Sys
        #
        # These may also be keywords in Java, but there they would be used capitalized.
        private var nit_keywords: Array[String] = ["abort", "abstract", "and", "assert",
-               "break", "class", "continue", "do", "else", "end", "enum", "extern", "implies",
-               "import", "init", "interface", "intrude", "if", "in", "is", "isa", "for", "label",
+               "break", "class", "continue", "do", "else", "end", "enum", "extern", "false", "implies",
+               "import", "init", "interface", "intrude", "if", "in", "is", "isa", "isset", "for", "label",
                "loop", "module", "new", "not", "null", "nullable", "or", "package", "private",
-               "protected", "public", "return", "self", "super", "then", "type", "var", "while"]
+               "protected", "public", "return", "self", "super", "then", "true", "type", "var", "while"]
 end
 
 redef class String