-
Notifications
You must be signed in to change notification settings - Fork 67
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 string embedded variables not highlighted correctly #254
Comments
Duplicate of https://sourceforge.net/p/scintilla/bugs/1761/ |
@zufuliu maybe this should be two bugs, I believe that variables inside double quotes not being highlighted is also an issue worth resolving. |
cc @mpheath, I think this can be fixed with following rough steps (not plan to work on this myself):
|
@zufuliu I like basic string styling so I currently have a negative interest with the OP feature request. |
How about configured with Bash like |
In PowersShell you can use $($Expression) inside of quotes to execute code during string interpolation. Consider this valid PowerShell code example:
Github formats the code as expected, however Notepad++ which uses the current version (532) of lexilla formats the code as shown:
Single quotes are handled correctly as variable expansion does not happen between single quotes, however double quotes should allow variable expansion and thus variables should be highlighted.
Finally, in the last example the $() structure should re-evaluate everything inside of the parenthesis as code. In the example it looks like the highlighter is interpreting the embedded quotation mark as the end of the string and the trailing single quote as the beginning of a new string.
The text was updated successfully, but these errors were encountered: