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