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

Highlighting inside of recipes #3

Open
antler5 opened this issue Jan 6, 2024 · 1 comment
Open

Highlighting inside of recipes #3

antler5 opened this issue Jan 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@antler5
Copy link
Owner

antler5 commented Jan 6, 2024

This might depend on the grammar we're using, but it would be nice to offer even some rudimentary parsing for sh, bash, and Guile. Idk much about tree-sitter, but the :language key seems to indicate some existing mechanisms for this?

@antler5 antler5 added the enhancement New feature or request label Jan 6, 2024
@antler5
Copy link
Owner Author

antler5 commented Jan 6, 2024

I tried to see what the parse tree looks like for an invocation of $(guile [sexp]), but run into upstream issue #8. It's reportedly not an issue on the "master" branch (as opposed to "main"), but I get a compine-time error about RECIPEPREFIX_VAR not being a constant expression when used as a case condition-- I can see that it is a constant variable, but know that's not necessarily the same thing as a constant expression. Unfortunately I don't have more time for that right now.

Leaving this issue open because I may still be able to implement sub-parsing for SH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant