Closed IISResetMe closed 3 years ago
A note, this adds 'keyword' highlighting, not syntax support. The current grammar file only handles keyword highlighting. This means that parameters of -any
and -all
will be highlighted as operators instead of as parameters, which is what happens for all the other operators as well.
@msftrncs thanks for the clarification. The PowerShellSyntax.tmLanguage
file was the only file I could find describing the operators, anywhere else I would need to update?
The PowerShellSyntax.tmLanguage file was the only file I could find describing the operators, anywhere else I would need to update?
@IISResetMe, there are other files that are used to demonstrate examples, and also a few to act as tests. It would be advisable to at least add tests, at least as a separate commit to this PR, that confirm the scoping of your new keywords. Reference https://github.com/PowerShell/EditorSyntax/blob/master/spec/testfiles/syntax_test_TheBigTestFile.ps1 for providing a test. Probably in the operators section.
Merged that one in. Feel free to update this with tests now.
I've abandoned the underlying feature, this is no longer relevant
To reflect changes to binary comparison operators in https://github.com/PowerShell/PowerShell/pull/11068