Parsing the pattern [\w-] throws Unexpected token "-" (range) at line 1 and column 4.
When encountered at the last position of a character class, a dash should produce a token with the value "-".
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/53869337-incorrect-handling-of-dashes-inside-character-classes?utm_campaign=plugin&utm_content=tracker%2F6167031&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F6167031&utm_medium=issues&utm_source=github).
Hi again :wink:,
Parsing the pattern
[\w-]
throwsUnexpected token "-" (range) at line 1 and column 4
. When encountered at the last position of a character class, a dash should produce a token with the value "-".