-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure all Unicode characters are parsed correctly
The previous implementation only handled ASCII characters! There's no reason to do that---Go supports Unicode just fine, and it's actually *easier* to do the right thing---so this adds Unicode letter and number support in parsing. It also extracts token parsing out into a separate function, which makes the tests more readable. Since it's now easier to test, this also backfills test coverage for tokens that include numbers.
- Loading branch information
Showing
2 changed files
with
73 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters