()
| 608 | } |
| 609 | |
| 610 | Token COMMENT() { |
| 611 | match('!'); |
| 612 | while ( !(c=='!' && input.LA(2)==delimiterStopChar) ) { |
| 613 | if ( c==EOF ) { |
| 614 | RecognitionException re = new MismatchedTokenException((int)'!', input); |
| 615 | re.line = input.getLine(); |
| 616 | re.charPositionInLine = input.getCharPositionInLine(); |
| 617 | errMgr.lexerError(input.getSourceName(), |
| 618 | "Nonterminated comment starting at " + |
| 619 | startLine +":"+startCharPositionInLine + |
| 620 | ": '!" + |
| 621 | delimiterStopChar + |
| 622 | "' missing", templateToken, re); |
| 623 | break; |
| 624 | } |
| 625 | consume(); |
| 626 | } |
| 627 | consume(); |
| 628 | consume(); // grab !> |
| 629 | return newToken(COMMENT); |
| 630 | } |
| 631 | |
| 632 | void LINEBREAK() { |
| 633 | match('\\'); // only kill 2nd \ as ESCAPE() kills first one |
no test coverage detected