★ wanayoo — archive 1999 https://github.com/PowerShell/EditorSyntax/pull/189Nouvelle recherche | Portail wanayoo
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

Add -any/-all operator syntax #189

Draft
wants to merge 2 commits into
base: master
from

Conversation

@IISResetMe
Copy link
Contributor

@IISResetMe IISResetMe commented Nov 14, 2019

To reflect changes to binary comparison operators in PowerShell/PowerShell#11068

@msftrncs
Copy link
Contributor

@msftrncs msftrncs commented Nov 14, 2019

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.

@IISResetMe
Copy link
Contributor Author

@IISResetMe IISResetMe commented Nov 15, 2019

@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?

@msftrncs
Copy link
Contributor

@msftrncs msftrncs commented Nov 15, 2019

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.

@IISResetMe
Copy link
Contributor Author

@IISResetMe IISResetMe commented Nov 15, 2019

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Nov 16, 2019

Merged that one in. Feel free to update this with tests now.

To reflect changes to binary comparison operators in PowerShell/PowerShell#11068
@IISResetMe IISResetMe force-pushed the IISResetMe:update/any-all-lambda branch from fcc6e12 to 7301a87 Nov 16, 2019
PowerShellSyntax.tmLanguage Outdated Show resolved Hide resolved
Move `any|all` out of `[ic]` prefix group

Co-Authored-By: Carl Morris <msftrncs@midlands.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.