Hi Marc,
It seems like a reasonable enhancement. Do you want to open a jira issue for it?
Yes, here it is: OPENJPA-259. I hope it's ok.
If you are interested in making a patch with the enhancement, the parser is at openjpa-kernel/src/main/jjtree/org/apache/openjpa/kernel/jpql/JPQL.jjt
I don't have any experience with JavaCC, or any other parser for that matter.
Regards, Ognjen
