Improve numeric literal matching

Revised to be current as of Java SE 8, add test document. Fixes #26.