<?PHP letters in uppercase get colored
authorkhartlage <khartlage>
Fri, 16 Jul 2004 17:46:20 +0000 (17:46 +0000)
committerkhartlage <khartlage>
Fri, 16 Jul 2004 17:46:20 +0000 (17:46 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCodeScanner.java

index 9bf5601..0e657f7 100644 (file)
@@ -133,18 +133,18 @@ public class PHPCodeScanner extends AbstractJavaScanner {
           return Token.UNDEFINED;
         } else {
           c = scanner.read();
-          if (c != 'p') {
+          if (c != 'p' && c != 'P') {
             scanner.unread();
             return getToken(IPreferenceConstants.PHP_TAG);
           } else {
             c = scanner.read();
-            if (c != 'h') {
+            if (c != 'h' && c != 'H') {
               scanner.unread();
               scanner.unread();
               return getToken(IPreferenceConstants.PHP_TAG);
             } else {
               c = scanner.read();
-              if (c != 'p') {
+              if (c != 'p' && c != 'P') {
                 scanner.unread();
                 scanner.unread();
                 scanner.unread();