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

Add PowerShell herestring autoclosing pairs #95245

Merged

Conversation

TylerLeonhardt
Copy link
Member

fixes #95244

$str = @"
I am a here string
"@

$str = @'
I am also a here string
'@

These @''@ and @""@ should autoclose.

NOTE: PowerShell syntax says that the here string open (@') should be the last characters on a line so we should include a newline in the close.

Proof:
Screen-Cast-2020-04-14-at-85940

@TylerLeonhardt
Copy link
Member Author

cc @alexdima

@alexdima alexdima self-assigned this Apr 14, 2020
@alexdima alexdima added this to the April 2020 milestone Apr 14, 2020
@alexdima
Copy link
Member

Thank you!

@alexdima alexdima merged commit fdab8ae into microsoft:master Apr 14, 2020
@TylerLeonhardt TylerLeonhardt deleted the autoclosing-powershell-herestrings branch April 14, 2020 21:33
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Autoclosing pairs for PowerShell herestrings
2 participants