Remove weird valid java files

Probably old typos. They probably meant to ignore trailing characters,
we don't (they must be eg comments or whitespace)
This commit is contained in:
Clément Fournier
2020-10-25 11:37:02 +01:00
parent 5dfac0b03a
commit e1c552d9eb

View File

@ -923,8 +923,6 @@ ASTCompilationUnit CompilationUnit() :
// a module (most common case)
[ LOOKAHEAD(ModuleDeclLahead()) ModuleDeclaration() ( EmptyDeclaration() )* ]
( TypeDeclaration() ( EmptyDeclaration() )* )*
( < "\u001a" > )?
( < "~[]" > )? // what's this for? Do you mean ( < ~[] > )*, i.e. "any character"?
<EOF>
{
jjtThis.setComments(token_source.comments);