MCPcopy Create free account
hub / github.com/antlr/codebuff / LINEBREAK

Method LINEBREAK

output/java/1.4.19/STLexer.java:638–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

636 }
637
638 void LINEBREAK() {
639 match('\\'); // only kill 2nd \ as ESCAPE() kills first one
640 match(delimiterStopChar);
641 while ( c==' ' || c=='\t' ) consume(); // scarf WS after <\\>
642 if ( c==EOF ) {
643 RecognitionException re = new RecognitionException(input);
644 re.line = input.getLine();
645 re.charPositionInLine = input.getCharPositionInLine();
646 errMgr.lexerError(input.getSourceName(), "Missing newline after newline escape <\\\\>", templateToken, re);
647 return;
648 }
649
650 if ( c=='\r' ) consume();
651 match('\n');
652 while ( c==' ' || c=='\t' ) consume(); // scarf any indent
653 }
654
655 public static boolean isIDStartLetter(char c) {
656 return isIDLetter(c);

Callers 1

ESCAPEMethod · 0.95

Calls 6

matchMethod · 0.95
consumeMethod · 0.95
getCharPositionInLineMethod · 0.80
getLineMethod · 0.45
lexerErrorMethod · 0.45
getSourceNameMethod · 0.45

Tested by

no test coverage detected