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

Merged
merged 1 commit into from
May 22, 2025

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
@DavisVaughan DavisVaughan merged commit a02626a into main May 22, 2025
6 checks passed
@DavisVaughan DavisVaughan deleted the feature/native-pipe-diagnostics branch May 22, 2025 18:23
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants