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

Try to parse shebang lines with a variable #179

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

leon-barrett
Copy link
Contributor

I believe this fixes this issue:
#175

I came to believe that the _opaque_shebang regex was eating too much and causing a parse error. I'm not sure I like this fix, but I'm a noob at tree-sitter, and maybe these breadcrumbs lead someone more experienced to a fix.

@tgross35
Copy link
Collaborator

Hey cool, it looks like this fixes parsing of kitchen-sink.just (in the just repo). Could you delete these lines?

# FIXME: xfail files, these should parse correctly
repositories/just/examples/kitchen-sink.just

@tgross35
Copy link
Collaborator

I bumped the tree-sitter version since after you opened this PR, just FYI you might need to rebase and regenerate.

@leon-barrett
Copy link
Contributor Author

I regenerated when I merged main, it looks like I got it right, whew.

@tgross35
Copy link
Collaborator

Awesome! FYI you have two different commit emails (barrettnexus and sony), not sure if you care about that.

Not a problem here of course, I'll squash merge whenever you're ready (unless you just want to rebase to drop the merge commit)

@leon-barrett
Copy link
Contributor Author

Okay, I've rebased, using my personal email. Thanks for noticing. Feel free to merge when you're ready.

Copy link
Collaborator

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Many thanks!

@tgross35 tgross35 merged commit 6aee3d2 into IndianBoy42:main Oct 15, 2024
4 checks passed
@leon-barrett leon-barrett deleted the leon-shebang-variable branch October 15, 2024 03:51
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.

2 participants