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

Dig into token tree "fallback" for Rust grammar? #67

Open
helixbass opened this issue Aug 24, 2023 · 0 comments
Open

Dig into token tree "fallback" for Rust grammar? #67

helixbass opened this issue Aug 24, 2023 · 0 comments

Comments

@helixbass
Copy link
Owner

It seems like the hacked version of the tree-sitter Rust grammar is parsing lists of expressions and key => value macro syntax ok, but what I ran into was that it wasn't behaving the way I'd thought it might when it can't successfully parse the macro invocation contents as either of those (I figured it would "fall back" to the (presumably successful) token-tree parsing and abandon the others, but per some of the tree-sitter-rust test cases with ERROR nodes it seems like sometimes it decides "to go with the list-of-expressions parsing anyway"?)

So might be worth trying to dig into that at some point?

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

No branches or pull requests

1 participant