-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tokenizer): enter ident mode when appropriate
There was a bug brought up in #54 where the tokenizer incorrectly enters identifier mode after seeing a `when/given`. This means that `bulloak` failed to scaffold the following: ```tree Foo └── It reverts when X. ``` Because it saw a `.` after `when`, even though this is a perfectly valid tree. We fix this by checking that `when/given` only make the tokenizer enter identifier mode if the last processed token was a branching token (either `Corner` or `Tee` currently).
- Loading branch information
1 parent
8231904
commit 488fb63
Showing
2 changed files
with
34 additions
and
1 deletion.
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