Skip to content

Add PowerShell herestring autoclosing pairs#95245

Merged
alexdima merged 1 commit intomicrosoft:masterfrom
TylerLeonhardt:autoclosing-powershell-herestrings
Apr 14, 2020
Merged

Add PowerShell herestring autoclosing pairs#95245
alexdima merged 1 commit intomicrosoft:masterfrom
TylerLeonhardt:autoclosing-powershell-herestrings

Conversation

@TylerLeonhardt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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