-
Notifications
You must be signed in to change notification settings - Fork 56
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
Nested heredocs are not parsed correctly #148
Comments
I've run into this issue when trying to run When I paste the following into https://tree-sitter.github.io/tree-sitter/playground:
I get the following output:
|
I have the same issue with bourne shell. Nested heredocs are totally wrongly parsed and thus wrongly highlighted e.g. by neovim. Do you have any news on the state of heredocs in treesitter? |
@dumblob heredocs are not a treesitter feature. Support for special lexcical things such as heredocs are implemented by |
My example (here is the original: pulsar-edit/pulsar#881 (comment)): # frozen_string_literal: true
some_hosts = ['192.168.1.56', '10.0.3.2']
some_config = <<~CONFIG
#{some_hosts.map do |some_host|
<<~SSH_HOST
---
kind: SSHHost
host: #{some_host}
SSH_HOST
end.join}
CONFIG
def log(data)
puts data
end
log some_config
|
In the following parse tree the ranges of the heredoc bodies are not right
The text was updated successfully, but these errors were encountered: