improved regexp for syntax properties with common dom keyword support