this.initializeScanner();
}
+
public void setFileToParse(IFile fileToParse) {
this.currentPHPString = 0;
PHPParserSuperclass.fileToParse = fileToParse;
scanner.setPHPMode(false);
}
- protected void initialize() {
+ protected void initialize(boolean phpMode) {
compilationUnit = null;
referenceContext = null;
this.str = "";
// this.rowCount = 1;
// this.columnCount = 0;
this.phpEnd = false;
- this.phpMode = false;
- scanner.setPHPMode(false);
+ this.phpMode = phpMode;
+ scanner.setPHPMode(phpMode);
}
/**
* Parses a string with php tags