PowerShell / EditorSyntax

PowerShell syntax highlighting for editors (VS Code, Atom, SublimeText, TextMate, etc.) and GitHub!
MIT License
131 stars 42 forks source link

Adds new PowerShell Core escapes `e and `u{x} (#60) #171

Closed msftrncs closed 5 years ago

msftrncs commented 5 years ago

Adds syntax highlighting support for `e (escape, ^[ or [char]27) and the Unicode entity escape `u{x} where x is 1-6 hex digits ranging in value from 0x0 to 0x10FFFF.

Adds simple tests for both.

Note, invalid use of `u will scope as invalid.character.escape.powershell image

I added a new repository item immediately below 'doubleQuotedStringEscapes' so that 'unicodeEscapes' could be reused. (#156 uses the same item 3 times)

(Closes) Fixes #60.