Detect <?= as PHP start tag
authoraxelcl <axelcl>
Wed, 4 May 2005 16:00:36 +0000 (16:00 +0000)
committeraxelcl <axelcl>
Wed, 4 May 2005 16:00:36 +0000 (16:00 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Scanner.java

index 6d3e4a8..a483ee4 100644 (file)
@@ -1902,8 +1902,9 @@ public class Scanner implements IScanner, ITerminalSymbols {
           if (getNextChar('?')) {
             currentCharacter = source[currentPosition++];
             if ((currentCharacter != 'P') && (currentCharacter != 'p')) {
-              currentPosition--;
-              // (currentCharacter == ' ') || Character.isWhitespace(currentCharacter)) {
+              if (currentCharacter != '=') { // <?=
+                currentPosition--;
+              }
               // <?
               if (ignorePHPOneLiner) {
                 if (lookAheadLinePHPTag() == TokenNameINLINE_HTML) {