-
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More tests and fixes for gen lexer word boundary
Third time's the charm! The correct word boundary test when the position is NOT at the beginning and NOT at the end is to always test the character before the current position and the character at the current position. In the first version, it tested the character at the current position and the next character after the current position. In the second version, it also tested the character before the current position and the character at the current position. The correct solution is simpler and makes sense. Added more conformance tests to cover the changes, including more cases to ensure \b does NOT match when it should not.
- Loading branch information
1 parent
fb225ea
commit 6ca58cf
Showing
2 changed files
with
39 additions
and
18 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