Skip to content
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

Allow .end to be unbalanced #86

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

zachallaun
Copy link
Contributor

Closes #85

@@ -168,6 +171,18 @@
}
}
},
{
"comment": "Qualified map access without parenthesis",
"match": "\\s*(\\.)\\s*([a-z_]\\w*[!?]?)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, I'm surprised whitespace is permitted after the dot. Nice!

Thanks for catching this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While not idiomatic, things like this are valid:

map.
  key

I can't any credit for remembering this fact, though -- I just copied and modified a similar rule :)

Copy link
Collaborator

@Blond11516 Blond11516 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the fix Zach!

@Blond11516 Blond11516 merged commit 8f2f031 into lexical-lsp:main Jul 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

do/end matching bug when end is a field of a map/struct
3 participants