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

Outlining is broken by "here document" #57

Closed
dthomash opened this issue Jul 10, 2018 · 2 comments
Closed

Outlining is broken by "here document" #57

dthomash opened this issue Jul 10, 2018 · 2 comments
Labels
grammar bug Issues related to the bash grammar

Comments

@dthomash
Copy link

dthomash commented Jul 10, 2018

Here document explanation: https://en.wikipedia.org/wiki/Here_document#Unix_shells

Simplified version of source that shows the problem:

methodname() {
	cat > file.txt << EOF
File contents
EOF
	echo "I'm still here"
}

When you minimize the method, it only minimizes until it hits the second EOF. Expected behavior is to minimize to the ending curly brace. I'm using vscode.

@mads-hartmann mads-hartmann added the bug Something isn't working label Jul 11, 2018
@mads-hartmann
Copy link
Collaborator

@havemeyerd Thanks for reporting this. I'll have a look

@mads-hartmann mads-hartmann added grammar bug Issues related to the bash grammar and removed bug Something isn't working labels Aug 2, 2018
@skovhus
Copy link
Collaborator

skovhus commented Nov 25, 2022

This seems to have been fixed in the newer version of the grammar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar bug Issues related to the bash grammar
Projects
None yet
Development

No branches or pull requests

3 participants