X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPParser.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPParser.java index 81d8579..ad5173d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPParser.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/phpparser/PHPParser.java @@ -761,23 +761,11 @@ public class PHPParser extends PHPKeywords { phpMode = true; phpFound = true; break; - } else if (ch2 == 'p') { + } else if (ch2 == 'p' || ch2 == 'P') { ch2 = str.charAt(chIndx++); - if (ch2 == 'h') { + if (ch2 == 'h' || ch2 == 'H') { ch2 = str.charAt(chIndx++); - if (ch2 == 'p') { - phpMode = true; - phpFound = true; - break; - } - chIndx--; - } - chIndx--; - } else if (ch2 == 'P') { - ch2 = str.charAt(chIndx++); - if (ch2 == 'H') { - ch2 = str.charAt(chIndx++); - if (ch2 == 'P') { + if (ch2 == 'p' || ch2 == 'P') { phpMode = true; phpFound = true; break;