Skip to content

Never flag _ as an unknown identifier #804

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DavisVaughan
Copy link
Contributor

Addresses posit-dev/positron#3749
Addresses posit-dev/positron#4102

tree-sitter parses this as an identifier node to keep things simple in the grammar, rather than parsing it as something like a pipe_placeholder within a pipe scope, which would be tough to do right. So we have to adapt to that here and always avoid flagging _ as an unknown symbol.

tree-sitter parses this as an `identifier` node to keep things simple in the grammar, rather than parsing it as something like a `pipe_placeholder` within a pipe scope, which would be tough to do right. So we have to adapt to that here and always avoid flagging `_` as an unknown symbol.
@DavisVaughan DavisVaughan requested a review from lionel- May 14, 2025 14:59
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.

1 participant