Improve rule matching Regexs

Use shorter Regex matching only \w+ and check for keywords separately
when determining proper token name.