EditorSyntax icon indicating copy to clipboard operation
EditorSyntax copied to clipboard

operator NOT (!) duplicated in unary and logical operators scopes, unary takes precedence

Open msftrncs opened this issue 7 years ago • 0 comments

Environment

  • Editor and Version: VS Code: 1.26.1
  • Your primary theme: Monokai Dimmed

Issue Description

The NOT logical operator ! is duplicated in the unary operator (-split/-join) and in the logical operator scope, and the unary operator scope seems to take precedence.

I think this is just an accident of a |! left at the end of the unary scope's regex.

Isn't unary operators those like ++ and --? Okay, I suppose ! and -NOT operators are consider unary, but that's not where PowerShell Docs classified them.

msftrncs avatar Aug 25 '18 04:08 msftrncs