Make the lexer test possible to pass

Adding a newline should actually not change the generated lexer.
This commit is contained in:
Daniel Halperin 2017-07-11 20:45:28 -07:00
parent 41889939d6
commit b09e30c6ca
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ public class Antlr4MojoTest {
////////////////////////////////////////////////////////////////////////
// modify the grammar to make checksum comparison detect a change
try(Change change = Change.of(lexerGrammar)) {
try(Change change = Change.of(lexerGrammar, "FOO: 'foo' ;")) {
maven.executeMojo(session, project, exec);
assertFalse(Arrays.equals(origTestLexerSum, checksum(genTestLexer)));

View File

@ -3,4 +3,4 @@ lexer grammar TestLexer;
import TestBaseLexer;
WS : Whitespace+ -> skip;
TEXT : ~[<&]+ ; // match any 16 bit char other than < and &
TEXT : ~[<&]+ ; // match any 16 bit char other than < and &