diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-09-06 11:34:46 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-09-06 11:34:46 -0700 |
commit | 1d8d46bcd5c517c9498b721c4b095d4dd36ef9d2 (patch) | |
tree | cd526627fcd27892fc1cc78b0a27c6f26d9653fd /php/src/IcePHP/Util.cpp | |
parent | adding Slice/keyword (diff) | |
download | ice-1d8d46bcd5c517c9498b721c4b095d4dd36ef9d2.tar.bz2 ice-1d8d46bcd5c517c9498b721c4b095d4dd36ef9d2.tar.xz ice-1d8d46bcd5c517c9498b721c4b095d4dd36ef9d2.zip |
updating reserved words & keyword test
Diffstat (limited to 'php/src/IcePHP/Util.cpp')
-rw-r--r-- | php/src/IcePHP/Util.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/php/src/IcePHP/Util.cpp b/php/src/IcePHP/Util.cpp index c9abfca6db5..519bb694453 100644 --- a/php/src/IcePHP/Util.cpp +++ b/php/src/IcePHP/Util.cpp @@ -26,11 +26,12 @@ lookupKwd(const string& name) // static const string keywordList[] = { - "and", "array", "as", "break", "case", "cfunction", "class", "const", "continue", "declare", "default", - "die", "do", "echo", "else", "elseif", "empty", "enddeclare", "endfor", "endforeach", "endif", "endswitch", - "endwhile", "eval", "exit", "extends", "for", "foreach", "function", "global", "if", "include", - "include_once", "isset", "list", "new", "old_function", "or", "print", "require", "require_once", "return", - "static", "switch", "unset", "use", "var", "while", "xor" + "abstract", "and", "array", "as", "break", "case", "catch", "class", "clone", "const", "continue", "declare", + "default", "die", "do", "echo", "else", "elseif", "empty", "enddeclare", "endfor", "endforeach", "endif", + "endswitch", "endwhile", "eval", "exit", "extends", "final", "for", "foreach", "function", "global", "if", + "implements", "include", "include_once", "interface", "isset", "list", "new", "or", "print", "private", + "protected", "public", "require", "require_once", "return", "static", "switch", "this", "throw", "try", + "unset", "use", "var", "while", "xor" }; bool found = binary_search(&keywordList[0], &keywordList[sizeof(keywordList) / sizeof(*keywordList)], |