|
Link Here
|
| 130 |
this.astPtr = -1; |
130 |
this.astPtr = -1; |
| 131 |
this.identifierPtr = -1; |
131 |
this.identifierPtr = -1; |
| 132 |
this.currentTokenType = -1; |
132 |
this.currentTokenType = -1; |
| 133 |
this.inlineTagStarted = false; |
133 |
setInlineTagStarted(false); |
| 134 |
this.inlineTagStart = -1; |
134 |
this.inlineTagStart = -1; |
| 135 |
this.lineStarted = false; |
135 |
this.lineStarted = false; |
| 136 |
this.returnStatement = null; |
136 |
this.returnStatement = null; |
|
Link Here
|
| 207 |
// Start tag parsing only if we are on line beginning or at inline tag beginning |
207 |
// Start tag parsing only if we are on line beginning or at inline tag beginning |
| 208 |
if ((!this.lineStarted || previousChar == '{')) { |
208 |
if ((!this.lineStarted || previousChar == '{')) { |
| 209 |
if (this.inlineTagStarted) { |
209 |
if (this.inlineTagStarted) { |
| 210 |
this.inlineTagStarted = false; |
210 |
setInlineTagStarted(false); |
| 211 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53279 |
211 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53279 |
| 212 |
// Cannot have @ inside inline comment |
212 |
// Cannot have @ inside inline comment |
| 213 |
if (this.reportProblems) { |
213 |
if (this.reportProblems) { |
|
Link Here
|
| 228 |
pushText(this.textStart, textEndPosition); |
228 |
pushText(this.textStart, textEndPosition); |
| 229 |
} |
229 |
} |
| 230 |
} |
230 |
} |
| 231 |
this.inlineTagStarted = true; |
231 |
setInlineTagStarted(true); |
| 232 |
invalidInlineTagLineEnd = this.lineEnd; |
232 |
invalidInlineTagLineEnd = this.lineEnd; |
| 233 |
} else if (this.textStart != -1 && this.textStart < invalidTagLineEnd) { |
233 |
} else if (this.textStart != -1 && this.textStart < invalidTagLineEnd) { |
| 234 |
pushText(this.textStart, invalidTagLineEnd); |
234 |
pushText(this.textStart, invalidTagLineEnd); |
|
Link Here
|
| 287 |
} |
287 |
} |
| 288 |
refreshInlineTagPosition(previousPosition); |
288 |
refreshInlineTagPosition(previousPosition); |
| 289 |
if (!isFormatterParser) this.textStart = this.index; |
289 |
if (!isFormatterParser) this.textStart = this.index; |
| 290 |
this.inlineTagStarted = false; |
290 |
setInlineTagStarted(false); |
| 291 |
} else { |
291 |
} else { |
| 292 |
if (!this.lineStarted) { |
292 |
if (!this.lineStarted) { |
| 293 |
this.textStart = previousPosition; |
293 |
this.textStart = previousPosition; |
|
Link Here
|
| 301 |
refreshReturnStatement(); |
301 |
refreshReturnStatement(); |
| 302 |
} |
302 |
} |
| 303 |
if (this.inlineTagStarted) { |
303 |
if (this.inlineTagStarted) { |
| 304 |
this.inlineTagStarted = false; |
304 |
setInlineTagStarted(false); |
| 305 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53279 |
305 |
// bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=53279 |
| 306 |
// Cannot have opening brace in inline comment |
306 |
// Cannot have opening brace in inline comment |
| 307 |
if (this.reportProblems) { |
307 |
if (this.reportProblems) { |
|
Link Here
|
| 400 |
pushText(this.textStart, textEndPosition); |
400 |
pushText(this.textStart, textEndPosition); |
| 401 |
} |
401 |
} |
| 402 |
refreshInlineTagPosition(textEndPosition); |
402 |
refreshInlineTagPosition(textEndPosition); |
| 403 |
this.inlineTagStarted = false; |
403 |
setInlineTagStarted(false); |
| 404 |
} else if (this.lineStarted && this.textStart != -1 && this.textStart <= textEndPosition) { |
404 |
} else if (this.lineStarted && this.textStart != -1 && this.textStart <= textEndPosition) { |
| 405 |
pushText(this.textStart, textEndPosition); |
405 |
pushText(this.textStart, textEndPosition); |
| 406 |
} |
406 |
} |
|
Link Here
|
| 1544 |
// do nothing by default |
1544 |
// do nothing by default |
| 1545 |
} |
1545 |
} |
| 1546 |
|
1546 |
|
|
|
1547 |
/** |
| 1548 |
* @param started the inlineTagStarted to set |
| 1549 |
*/ |
| 1550 |
protected void setInlineTagStarted(boolean started) { |
| 1551 |
this.inlineTagStarted = started; |
| 1552 |
} |
| 1553 |
|
| 1547 |
/* |
1554 |
/* |
| 1548 |
* Entry point for recovery on invalid syntax |
1555 |
* Entry point for recovery on invalid syntax |
| 1549 |
*/ |
1556 |
*/ |