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

ValidatePattern breaking Syntax Highlighting #34

Closed
RobBiddle opened this issue Jan 31, 2017 · 6 comments
Closed

ValidatePattern breaking Syntax Highlighting #34

RobBiddle opened this issue Jan 31, 2017 · 6 comments
Assignees
Labels
Projects
Milestone

Comments

@RobBiddle
Copy link

Regex for GUID validation is breaking Syntax Highlighting

Add this to a Parameter statement to recreate issue: [ValidatePattern("^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$")]

VSCode 1.8.1
PowerShell extension 0.9.0

@tjsobeck
Copy link

Same issue with mac address validation
[Parameter(ParameterSetName='mac')][ValidatePattern("([a-zA-Z0-9]{2}:){5}[a-zA-Z0-9]{2}")]

@jbolduan
Copy link

I'm also seeing this issue on the following build:

VSCode 1.12.2
PowerShell Extension: 1.1.0

@MattAllison
Copy link

I think there are a handful of issues on this (including one I commented on a bit but can't seem to find). Can we combine them?

@keller4
Copy link

keller4 commented Jul 27, 2017

Same issue with the following:

[ValidatePattern('^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$')]

Everything following the final single-quote is displayed as though it were a string.

VSCode 1.14.2
PowerShell Extension 1.4.1

@thor
Copy link

thor commented Apr 10, 2018

Is there anything anyone can help with, besides the actual TextMate grammar update required, to aid this bug being fixed? 🙂

@omniomi
Copy link
Collaborator

omniomi commented May 21, 2018

This was resolved by #94

@omniomi omniomi closed this as completed May 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
v2
Bugs - Open
Development

No branches or pull requests

8 participants