close
The Wayback Machine - https://web.archive.org/web/20220318071621/https://github.com/atom/language-shellscript/pull/160
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

Fix heredoc expansion #160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mohd-akram
Copy link

@mohd-akram mohd-akram commented Jun 21, 2020

Description of the Change

Add support for recognizing expansions in heredocs. The begin regexes of the existing rules are modified to not match the expanded form (which doesn't have quotes, see here). New rules for the expanded form are added that are identical to the existing ones minus the quotes. The patterns are taken from 'string' (minus the quotes).

Alternate Designs

None

Benefits

Variables in shell script heredocs will be correctly highlighted.

Possible Drawbacks

None

Applicable Issues

#151

@mohd-akram
Copy link
Author

@mohd-akram mohd-akram commented Aug 12, 2020

@darangi Could this be merged?

@softwarecreations
Copy link

@softwarecreations softwarecreations commented Feb 4, 2021

You might find my bug report interesting: #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants