-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: anchor position now correctly tracked
Anchor position wasn't being correctly tracked because Cb() pulls from the *outermost named capture*. so all of the named captures in nested captures, such as lists and strings, were not updated on newlines and so anchors were unreliable. the grammar can now handle this properly and transmit context. it should be significantly easier to transmit additional context (if needed) in the future. there's now a more general property test for validating outputs of the format, and some new tests for specific edge cases. comments and longstrings now normalize their indentation levels to the indentation level of the parent.
- Loading branch information
1 parent
799573e
commit 7fbb9f1
Showing
2 changed files
with
460 additions
and
82 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
Oops, something went wrong.