-
Notifications
You must be signed in to change notification settings - Fork 46
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
$test:/ - colon is not being parsed correctly on string #192
Comments
There might be a little confusion of what should be displayed here.
Here is your code on PR #156 when using a theme that highlights invalid constructs in bright red. Note the squiggles from PSSA indicating the variable references are invalid.
But notice that the prompt The correct syntax is actually: "pi@${ip}:/home/pi/PowerShell_IoT/" |
Yap, I know that it is an invalid reference, but so is |
The theme in my images is a modified Monokai Dimmed, https://github.com/msftrncs/theme-monokai-less-dimmed. Monokai Dimmed does provide an invalid scope. What is more important is the work I put in to PR #156 so that the invalid variable reference was scoped as invalid. Currently, the variable constructs in the current repository requires a valid character after the ':' in order to be part of the scope or drive reference, and might not even consider any additional colons as valid at all, so you might have a point there. This appears to be what issue #49 was about. I've been running with PR #156 for so long I've forgotten this was an issue. In |
Environment
Issue Description
From my tests, this seems to only happen if the colon is followed by some sort of special character such as - @ / etc
Screenshots
Expected Behavior
It should parse correctly, like this (taken from windows powershell). Notice that the colon is green, since it "belongs" to the variable:
Code Samples
The text was updated successfully, but these errors were encountered: