aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-08-01 23:10:08 (EDT)
committerzzhongwei2012-08-01 23:10:08 (EDT)
commitf7cedec17db0d507e95bd13bb766c70245435dd8 (patch)
tree619f8d92e5040ac64b756477c43b0439bbbff2a3
parent07f1ebdef4d70983fc034854c60502407ea16bfd (diff)
downloadorg.eclipse.pdt-f7cedec17db0d507e95bd13bb766c70245435dd8.zip
org.eclipse.pdt-f7cedec17db0d507e95bd13bb766c70245435dd8.tar.gz
org.eclipse.pdt-f7cedec17db0d507e95bd13bb766c70245435dd8.tar.bz2
Bug 379780 - Syntax Coloring for php5.4
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/PHPUIMessages.properties2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/PHPUIMessages.properties b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/PHPUIMessages.properties
index eadcb72..65591c1 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/PHPUIMessages.properties
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/PHPUIMessages.properties
@@ -346,7 +346,7 @@ PHPUIHelp_link_label=PHP documentation for ''{0}''
EditorUtility_concatModifierStrings= {0} + {1}
ColorPage_BoundryMaker=PHP tags
-ColorPage_CodeExample_0=<?php\ndefine('TEST', "");\necho $GLOBALS['test'];\necho __LINE__;\nfunction test($test){\n\treturn false;\n}\n/**\n * @deprecated\n */\nclass Foo extends ReflectionClass implements Foo\\IBar{\n\tconst E_ERROR = 45;\n\tvar $test;\n\tpublic static $my_static = 'foo';\n\tpublic function test($test){\n\t\treturn $this->test;\n\t}\n\tpublic static function foo(){\n\t\treturn false;\n\t}\n}\n\n\t$text =<<<HEREDOC\n\tHello, World!\nHEREDOC;\n\n\t/**\n\t * Sample function\n\t * @throws Exception\n\t */\n\tfunction foo() {\n\t\tif (func_num_args() != 1) {\n\t\t\tthrow new Exception ("Illegal number of arguments!");\n\t\t}\n\t\t// TODO: do something\n\t\t$args = func_get_args();\n\t\tprint "{$args[0]}\\n";\n\t}\n?>
+ColorPage_CodeExample_0=<?php\ndefine('TEST', "");\necho $GLOBALS['test'];\necho __LINE__;\nfunction test($test){\n\treturn false;\n}\ntrait A {\n\tpublic $test1;\n\tpublic function smallTalk() {\n\t\techo 'a';\n\t}\n\tpublic function bigTalk() {\n\t\techo 'A';\n\t}\n}\ntrait B1{\n\tpublic function smallTalk() {\n\t\techo 'b';\n\t}\n\tpublic function bigTalk() {\n\t\techo 'B';\n\t}\n}\n/**\n * @deprecated\n */\nclass Foo extends ReflectionClass implements Foo\\IBar{\n\tuse A, B1 {\n\t\tA::smallTalk insteadof B1;\n\t\tB1::bigTalk insteadof A;\n\t\tB1::smallTalk as static lk;\n\t\tA::bigTalk as btalk;\n\t}\n\tconst E_ERROR = 45;\n\tvar $test;\n\tpublic static $my_static = 'foo';\n\tpublic function test($test){\n\t\treturn $this->test;\n\t}\n\tpublic static function foo(){\n\t\treturn false;\n\t}\n}\n\n$foo = new Foo();\n$foo->bigTalk();\n$foo->btalk();\n$foo->smallTalk();\n$foo->test1;\n$foo->getConstant("asdf");\n\t$text =<<<HEREDOC\n\tHello, World!\nHEREDOC;\n\n\t/**\n\t * Sample function\n\t * @throws Exception\n\t */\n\tfunction foo() {\n\t\tif (func_num_args() != 1) {\n\t\t\tthrow new Exception ("Illegal number of arguments!");\n\t\t}\n\t\t// TODO: do something\n\t\t$args = func_get_args();\n\t\tprint "{$args[0]}\\n";\n\t}\n?>
ColorPage_Comment=Multi-line comment
ColorPage_LineComment=Single-line comment
ColorPage_PHPDOCComment=PHPDoc comment