added some rules for alternative case like <?Php <?pHp ...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / php / PHPPartitionScanner.java
index c15249b..df3d421 100644 (file)
@@ -505,9 +505,17 @@ public class PHPPartitionScanner extends RuleBasedPartitionScanner {
     rules.add(new PHPMultiLineRule("<?\n", "?>", php));
     rules.add(new PHPMultiLineRule("<?\t", "?>", php));
     rules.add(new PHPMultiLineRule("<? ", "?>", php));
+
     rules.add(new PHPMultiLineRule("<?php", "?>", php));
     rules.add(new PHPMultiLineRule("<?PHP", "?>", php));
 
+    rules.add(new PHPMultiLineRule("<?pHP", "?>", php));
+    rules.add(new PHPMultiLineRule("<?PhP", "?>", php));
+    rules.add(new PHPMultiLineRule("<?PHp", "?>", php));
+
+    rules.add(new PHPMultiLineRule("<?Php", "?>", php));
+    rules.add(new PHPMultiLineRule("<?pHp", "?>", php));
+    rules.add(new PHPMultiLineRule("<?phP", "?>", php));
     //    rules.add(new HTMLPatternRule(html)); // "<", "<?",
     //Add rule for processing instructions