-
Notifications
You must be signed in to change notification settings - Fork 4
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
Heredoc Definition Strings #76
Comments
I just started looking through your library, ruby-grammar-builder https://github.com/jeff-hykin/ruby_grammar_builder Trying to get familiar with it, but i'm a bit confused still. For the "=cut" issue I'm wondering where exactly you think the issue lies. Based on what you said in the old issue, it's somewhere in the better-shell-syntax/main/main.rb Lines 943 to 962 in 7220287
i'm guessing it's this section? L950 then(
match: name_pattern,
reference: "delimiter",
tag_as: "punctuation.definition.string.heredoc",
) I think you said in the library that there's some kind of limitation of having sub-matches within a Is this one of those situations that this Really curious if i can help you out here! I'm also happy to also help on the other heredoc issues with the pipelines on the same line or the line-breaks. I'm also really curious about #64 if there is even a way for you to delegate a section of code to a different syntax highlighter? |
Yes! Nice Job, that is exactly the case. I believe shell would support even a multi-line delimiter but theres no way for the grammar to match that. That said, the existing behavior could be improved. Right now its looking for |
Hi Jeff, I'd love to help with the heredoc issues, started this new issue so we don't have to bother everyone on the previous issue.
The code with a problem is:
better-shell-syntax/main/main.rb
Line 936 in 7220287
It looks like:
It should look like:
The text was updated successfully, but these errors were encountered: