public boolean phpMode = false;
-// public boolean phpExpressionTag = false;
-
+ /**
+ * This token is set to TokenNameecho if a short tag block begins (i.e. >?= ... )
+ * Directly after the "=" character the getNextToken() method returns TokenNameINLINE_HTML
+ * In the next call to the getNextToken() method the value of fFillerToken (==TokenNameecho) is returned
+ *
+ */
int fFillerToken = TokenNameEOF;
- // public Stack encapsedStringStack = null;
public char currentCharacter;
if (!phpMode) {
return getInlinedHTMLToken(currentPosition);
} else {
- if (fFillerToken!=TokenNameEOF) {
+ if (fFillerToken != TokenNameEOF) {
int tempToken;
tempToken = fFillerToken;
- fFillerToken=TokenNameEOF;
+ fFillerToken = TokenNameEOF;
return tempToken;
}
this.wasAcr = false;
* @throws InvalidInputException
*/
private int getInlinedHTMLToken(int start) throws InvalidInputException {
- boolean phpShortTag = false; // true, if <?= detected
+ boolean phpShortTag = false; // true, if <?= detected
if (currentPosition > source.length) {
currentPosition = source.length;
return TokenNameEOF;
case 's':
// self static switch
switch (length) {
-// case 4:
-// if ((data[++index] == 'e') && (data[++index] == 'l') && (data[++index] == 'f')) {
-// return TokenNameself;
-// }
-// return TokenNameIdentifier;
+ // case 4:
+ // if ((data[++index] == 'e') && (data[++index] == 'l') && (data[++index]
+ // == 'f')) {
+ // return TokenNameself;
+ // }
+ // return TokenNameIdentifier;
case 6:
if (data[++index] == 't')
if ((data[++index] == 'a') && (data[++index] == 't') && (data[++index] == 'i') && (data[++index] == 'c')) {
initialPosition = currentPosition = 0;
containsAssertKeyword = false;
withoutUnicodeBuffer = new char[this.source.length];
+ fFillerToken = TokenNameEOF;
// encapsedStringStack = new Stack();
}
return "require_once"; //$NON-NLS-1$
case TokenNamereturn:
return "return"; //$NON-NLS-1$
-// case TokenNameself:
-// return "self"; //$NON-NLS-1$
+ // case TokenNameself:
+ // return "self"; //$NON-NLS-1$
case TokenNamestatic:
return "static"; //$NON-NLS-1$
case TokenNameswitch: