tree-sitter-bash
tree-sitter-bash copied to clipboard
Make all quoted here-documents raw and fix tests
- "EOF" and \EOF quoted here-docs were not marked as raw.
- Update test to not expect expansion in quoted here-doc and last here-doc has an empty body.
last here-doc has an empty body
There still should be a a heredoc_body
node even if the body is empty. It seems like something is wrong, and the entire remainder of the file after \EOF
is getting parsed as heredoc_start
.
I think that needs to be and else if
because then \"EOF
or \'EOF
would be accepted?
Yes, it might need to be restructured a bit.
@derekschrock @maxbrunsfeld if you both agree, I'd gladly tackle this once #142 is merged.
I'm not sure this is still an issue. "EOF" and \EOF here-docs appear to be raw in vim and coc with bash-language-server that is using wasm built from tree-sitter-bash 4488aa414.
@derekschrock it might be because everyting is raw these days, see Emacs screenshot below ☹

oh that's right I do remember that change. Ok yeah please have at it and let me know if you need some testing.