-
-
Notifications
You must be signed in to change notification settings - Fork 84
Generic scope handler interfaces #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
846bd80
Original scope handlers
pokey ed0d18b
More stuff
pokey b7a4d73
Initial work
AndreasArvidsson 6d4dbfe
Use proper token stage in sub token stage
AndreasArvidsson 71078ed
Work around for identifier matcher
AndreasArvidsson 07cc996
Use new scope handler in relative scope stage
AndreasArvidsson 298d823
Use new scope handlers in ordinal scope stage
AndreasArvidsson 454e158
Update usage of containing indices
AndreasArvidsson 4c33e8a
Rename
AndreasArvidsson c8cb599
Refactored create target
AndreasArvidsson 756f9bb
Clean up
AndreasArvidsson 7156a02
clean up
AndreasArvidsson cc4d38e
Add some tests that should pass
pokey 73bba88
Add a bunch more tests
pokey b72819f
Attempt at different approach to scope handlers
pokey 1555fe7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ef0d571
Initial implementation of new idea
pokey 3390b1f
More work on this stuff
pokey 21d75ea
Rename and add some todos
pokey bde7531
More stuff
pokey a8104f6
Tweaks
pokey e24a9e3
Renames and docstrings
pokey 99a5af6
Restructuring
pokey 9513753
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] e410ed5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4b2325d
More jsdocs
pokey e519f0d
Tweaks
pokey 39d6faf
Test fixes
pokey 5ff57d4
Fix error messages
pokey 5aeb2a6
Revert `OrdinalScopeStage`
pokey ea80465
Tweak
pokey 234811a
jsdocs; fix import
pokey 969bc72
Don't export legacy types
pokey 084824c
Fix import
pokey b483468
Preparation for surrounding pairs
pokey 5ef5c41
Naming cleanup
pokey e73c420
Unify `getLegacyScopeStage` functions
pokey 0628ca6
Lots of cleanup
pokey 4b52d3c
Fix regex `lastIndex` issue
pokey e9b30cc
More cleanup
pokey 4e7920c
More cleanup
pokey 527ad18
More cleanup
pokey d73fae6
Add `ancestorIndex` in prepartion for #124
pokey 0b082cb
Add more jsdocs
pokey ed93d3f
More docs
pokey b1bb34c
More docs
pokey 616e828
docstrings
pokey eaa3318
Improve hierarchical error type
pokey 62a2e6e
Docs
pokey f83493c
More minor dog tweaks
pokey af9c0f7
More docs
pokey 65f8a13
More docs
pokey ab7feae
Doc strings and a couple tests
pokey e10a9a8
Remove `isPreferredOver`
pokey 994b364
Support `ancestorIndex` on api surface
pokey 37268e1
Improved jsdocs
pokey f86b98c
Split and cleanup relative stages
pokey 307fb12
Make scope handler constructor args optional
pokey f21c8f5
More legacy type fixes
pokey 0818816
Add `"identifier"` scope
pokey 4252fae
Merge branch 'main' into generic-scope-handler-interfaces
pokey 32cb685
Working new code
pokey 4cc83af
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4d3ed1f
Docs + cheatsheet
pokey aa2a74f
Update docs
pokey fe57dd4
Add jsdoc
pokey 11ae8a0
jsdoc
pokey 26438ea
JSDocs
pokey b4a0967
doc tweaks
pokey 6adadd7
reflow
pokey eb271cd
Tweaks
pokey 235b05f
Merge branch 'main' into generic-scope-handler-interfaces
AndreasArvidsson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I introduced this one because otherwise you need to say
"one tokens backward"
, which is kinda awkward 😅. Now you just say"token backward"
. Cheatsheet updated