X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java index 8c0d37a..160925c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java @@ -161,10 +161,15 @@ public class PHPCodeScanner extends RuleBasedScanner implements IPreferenceConst // //for (int i = 0; i < PHPFunctionNames.FUNCTION_NAMES.length; i++) // // wordRule.addWord(PHPFunctionNames.FUNCTION_NAMES[i], functionName); // //<--choochter - for (int i = 0; i < PHPFunctionNames.FUNCTION_NAMES.length; i++) + for (int i = 0; i < PHPKeywords.PHP_KEYWORS.length; i++) { + wordRule.addWord(PHPKeywords.PHP_KEYWORS[i], keyword); + } + for (int i = 0; i < PHPFunctionNames.FUNCTION_NAMES.length; i++) { wordRule.addWord(PHPFunctionNames.FUNCTION_NAMES[i], functionName); - for (int i = 0; i < fgConstants.length; i++) - wordRule.addWord(fgConstants[i], functionName); + } + for (int i = 0; i < fgConstants.length; i++) { + wordRule.addWord(fgConstants[i], keyword); + } rules.add(wordRule); IRule[] result = new IRule[rules.size()];