Prevent - at end of identifiers, closing #222.
 - Add tests to warn on regression.
 - No regex constructions that aren't already in use are used in this fix.
   Hopefully this implies no new browser incompatibility.