forked from jasder/antlr
Make the lexer test possible to pass
Adding a newline should actually not change the generated lexer.
This commit is contained in:
parent
41889939d6
commit
b09e30c6ca
|
@ -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)));
|
||||
|
|
|
@ -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 &
|
||||
|
|
Loading…
Reference in New Issue