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

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

Merged

Conversation

msftrncs
Copy link
Contributor

@msftrncs msftrncs commented May 8, 2019

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.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TylerLeonhardt TylerLeonhardt merged commit f33f44c into PowerShell:master May 8, 2019
@msftrncs msftrncs deleted the issue#60_PowerShell6Escapes branch May 9, 2019 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add two new escape characters for PowerShell Core 6
2 participants