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

Aperta
#142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell
Ambito
tooling

Direzione di ricerca

Locate the syntax-highlighting grammar that defines the unary and logical operator scopes, then inspect the regex for the reported trailing |!. Verify the ! operator is classified in the intended scope and confirm the highlighting behavior in a PowerShell editor.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PowerShell
Stelle
151
Fork
55
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/EditorSyntax

Tutte le issue di PowerShell/EditorSyntax

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.