@Test public void testRangeInParserGrammar() {
		String grammar =
			"grammar T;\n"+
			"a:  'A'..'Z' ;\n";
		String expected =
			"error(" + ErrorType.TOKEN_RANGE_IN_PARSER.code + "): T.g4:2:4: token ranges not allowed in parser: 'A'..'Z'\n";

		String[] pair = new String[] {
			grammar,
			expected
		};

		testErrors(pair, true);
	}
This is a regression test for antlr/antlr4#497 now that antlr/antlr4#309
is resolved.
https://github.com/antlr/antlr4/issues/497
https://github.com/antlr/antlr4/issues/309
tool-testsuite/test/org/antlr/v4/test/tool/TestToolSyntaxErrors.java