improved php parser for keywords do-while, null, false, true...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPKeywords.java
index 8e86fb0..8e6409b 100644 (file)
@@ -51,9 +51,8 @@ public class PHPKeywords {
     //  "empty",
     //  "array",
     //   "isset",
-    "echo", "var", "as", "print", 
-    "unset", "exit", "die", "and", "or", "xor",
-    "list" };
+    "echo", "var", "as", "print", "unset", "exit", "die", "and", "or", "xor", "list", 
+    "null", "false", "true" };
 
   public final static String[] PHP_TYPES =
     { "string", "unset", "array", "object", "bool", "boolean", "real", "double", "float", "int", "integer", };
@@ -89,8 +88,8 @@ public class PHPKeywords {
   public final static int TT_foreach = 1028;
   public final static int TT_endforeach = 1029;
   public final static int TT_extends = 1030;
- // public final static int TT_empty = 1031;
- // public final static int TT_array = 1032;
+  // public final static int TT_empty = 1031;
+  // public final static int TT_array = 1032;
   public final static int TT_echo = 1033;
   public final static int TT_var = 1034;
   public final static int TT_as = 1035;
@@ -102,6 +101,9 @@ public class PHPKeywords {
   public final static int TT_or = 1041;
   public final static int TT_xor = 1042;
   public final static int TT_list = 1043;
+  public final static int TT_null = 1044;
+  public final static int TT_false = 1045;
+  public final static int TT_true = 1046;
 
   public final static int[] PHP_KEYWORD_TOKEN =
     {
@@ -135,9 +137,9 @@ public class PHPKeywords {
       TT_foreach,
       TT_endforeach,
       TT_extends,
-     // TT_empty,
+    // TT_empty,
     //  TT_array,
     //   TT_isset,
-    TT_echo, TT_var, TT_as, TT_print, TT_unset, TT_exit, 
-    TT_die, TT_and, TT_or, TT_xor, TT_list };
+    TT_echo, TT_var, TT_as, TT_print, TT_unset, TT_exit, TT_die, TT_and, TT_or, TT_xor, TT_list, 
+    TT_null, TT_false, TT_true };
 }