contrib/jwrapper grammar: fix parsing many files at once