-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: semver in aqua #7018
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
fix: semver in aqua #7018
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
bf45f24
checkpoint
lucasew 6f7c851
checkpoint
lucasew 6b5a803
checkpoint
lucasew c6b0df3
checkpoint
lucasew d7ccc59
checkpoint
lucasew 9bf3a3d
checkpoint
lucasew 9b89dd1
checkpoint
lucasew f62ef7c
checkpoint
lucasew 69a76f6
checkpoint
lucasew 2a4b31c
rm debugs
lucasew 3b53d42
template registry functions
lucasew 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
Next
Next commit
checkpoint
Signed-off-by: lucasew <lucas59356@gmail.com>
- Loading branch information
commit bf45f2471e9648646c549d55d4505e7c42734ebe
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
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.
Bug: Whitespace breaks property access detection in lexer
The lexer checks if the last token is
RParento determine whether a dot starts a property access, but this fails when whitespace appears between the closing parenthesis and the dot. For example,(semver .Version) .Majorwould incorrectly lex.MajorasKey("Major")instead ofDot+Ident("Major")because the last token isWhitespace, notRParen. This causes the parser to miss the property access and return an incorrect result. The check needs to skip whitespace tokens when looking for the precedingRParen.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.
It doesn't apply
https://go.dev/play/p/KVMHHzVz88G