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

Method LINEBREAK

output/java/1.4.15/STLexer.java:632–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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