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

Powershell: enclosed subexpression in string #1361

Closed
CoenraadS opened this issue Mar 20, 2018 · 2 comments
Closed

Powershell: enclosed subexpression in string #1361

CoenraadS opened this issue Mar 20, 2018 · 2 comments

Comments

@CoenraadS
Copy link

"Some message string [$($object.property)]"

image

The last ] isn't tokenized as puncuation

@Golmote
Copy link
Contributor

Golmote commented Mar 20, 2018

@CoenraadS Do the square brackets have any meaning here? I'm wondering if the issue is the color of the closing bracket or the opening bracket... I can't find anything about interpolating things inside square brackets, so I'd say the latter. Can you confirm?

I mean the first bracket should probably not be highlighted as punctuation, should it?

EDIT: Oh, sorry, I thought you might be able to answer this yourself. I'll ask directly in the linked issue next time ;)

@CoenraadS
Copy link
Author

I asked the OP and he said they are part of the string, so the first bracket is indeed incorrect.

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

No branches or pull requests

2 participants