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

add language injection queries #31

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Conversation

nrdxp
Copy link

@nrdxp nrdxp commented Sep 1, 2022

resolves #13

Only tested in helix-editor/helix#3594 atm, but the queries should be generic enough to work everywhere.

There is an issue with bash injection where a regex of /".*/ isn't detected by bash's tree-sitter just before a ${ interpolation.
This causes the quoting to become unbalanced, since it doesn't detect the opening quote, it reads the rest of the string as a qouted bash string incorrectly. I haven't quite gotten to the bottom of it, but I'm fairly confident its an issue in tree-sitter-bash, since this doesn't happen in python or other language injections I tried.
solved with injection.combined.

Only outstanding issue is #32, which is solved by #33

@nrdxp nrdxp force-pushed the injections branch 3 times, most recently from 901c904 to e43d215 Compare September 3, 2022 00:23
@cstrahan
Copy link
Collaborator

Very nice -- thanks!

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.

Language Injection?
2 participants