}
parseDeclarations(buf, true);
}
+ } else if (fToken == TokenNamedefine) {
+ getNextToken();
+ if (fToken == TokenNameLPAREN) {
+ getNextToken();
+ if (fToken == TokenNameStringLiteral) {
+ ident = fScanner.getCurrentStringLiteralSource();
+ buf.append("\td");
+ buf.append(ident);
+ getNextToken();
+ }
+ }
} else if ((fToken == TokenNameLBRACE) || (fToken == TokenNameDOLLAR_LBRACE)) {
getNextToken();
counter++;
parseDeclarations(buf, true);
}
+ } else if (fToken == TokenNamedefine) {
+ getNextToken();
+ if (fToken == TokenNameLPAREN) {
+ getNextToken();
+ if (fToken == TokenNameStringLiteral) {
+ ident = fScanner.getCurrentStringLiteralSource();
+ buf.append("\td");
+ buf.append(ident);
+ getNextToken();
+ }
+ }
} else {
getNextToken();
}
classname = identifier;
phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.CLASS, phpFileName);
break;
+ case 'd' : // define
+ identifier = token.substring(1);
+ phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.DEFINE, phpFileName);
+ break;
case 'f' : // function name
identifier = token.substring(1);
phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.FUNCTION, phpFileName);
classname = identifier;
phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.CLASS, phpFileName);
break;
+ case 'd' : // define
+ identifier = token.substring(1);
+ phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.DEFINE, phpFileName);
+ break;
case 'f' : // function name
identifier = token.substring(1);
phpIdentifier = new PHPIdentifierLocation(identifier, PHPIdentifier.FUNCTION, phpFileName);