update keyword and symbol definitions and implementations to match more cases, and hopefully be simpler
fix regex pattern to accept all char escapes