-
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 robustness suggestion #89
Comments
Closing the issue. I should have read the Heredoc specification before posting. The |
Heredoc basic syntax [COMMAND] <<[-] 'DELIMITER'
HERE-DOCUMENT
DELIMITER |
Stuff like this is purely/generally a hack to get things working in Textmate.
I thought the contributing.md covers it but I could be wrong so I'll give a TLDR. Fork/clone, install dependencies (ruby, and the textmate_grammar_builder (name might be slightly different) gem), edit the
Always appreciated. Even when I don't accept a PR, for example when someone edits the .tmLanguage.json directly even though its a generated file, it almost always saves me a good bit a time when actually fixing the problem. So PR's are always welcome. I will say, Textmate sucks, so fixing simple things are often x10 harder than they should be. Theres a lot of up front cost to learning the quirks of the Textmate parser just to fix something simple. |
The Heredoc Regex isn't robust
This heredoc was extracted from the
tput
man page. It fails to recognize the closing delimiter. I have looked through theshell.tmLanguage.json
and believe that the following regex for the heredoc begin and end:would be more robust with one that only sought the delimiter
\\3
. I preserved the further specificity of(?=\\s|;|&|$)
although, I don't know if the heredoc strictly requires that per its specification. I'll look that up.I have a short term question and a long term question. Short term, what is the easiest way to get this in the my environment. Can I overwrite that path in my
setting.json
. Second, would you prefer to handle this or would you prefer a PR. I read through the documentation and the setup. I would have to work it within my priorities. But I could work this one and Issue #88 if you would like. I have not looked at that one yet, but I'll will soon and attempt to propose a solution rather than just throw an issue at you.Regards,
Will
The text was updated successfully, but these errors were encountered: