Giter Site home page Giter Site logo

Comments (8)

daviwil avatar daviwil commented on July 4, 2024

From @fromthewoods on February 28, 2017 22:25

Did I put this in the wrong repo? Should this be in PowerShell / vscode-powershell or Microsoft / vscode ?

from editorsyntax.

daviwil avatar daviwil commented on July 4, 2024

From @rkeithhill on February 28, 2017 22:26

It should go in https://github.com/powershell/editorsyntax.

from editorsyntax.

fromthewoods avatar fromthewoods commented on July 4, 2024

Thanks @daviwil and @rkeithhill.

from editorsyntax.

fromthewoods avatar fromthewoods commented on July 4, 2024

Windows 7
VScode 1.9.1
PowerShell extension 0.9.0
PowerShell version 5.1.14409.1005

from editorsyntax.

MattAllison avatar MattAllison commented on July 4, 2024

I'm having the same problem. Patterns in question are:

    [Parameter(Mandatory=$True,ValueFromPipelineByPropertyName=$True )]
    [ValidatePattern("^((?!^.{90})([A-Z]{2}(-)[0-9]+-[0-9]+-[A-Z]{4}-RG-[0-9]+))$")]
    [string]$Parameter1,          
       
    [Parameter(Mandatory=$true,ValueFromPipelineByPropertyName=$True)]
    [ValidatePattern("^((?!^.{80})([A-Z]{2}(-)[0-9]+-[0-9]+-[A-Z]{4}-LB-[0-9]+))$")]
    [string]$Parameter2,        

from editorsyntax.

Jawz84 avatar Jawz84 commented on July 4, 2024

First off; thanks for all the hard work!!
Wanted to let you know: i have this issue too:
[Parameter(ParameterSetName = 'Network')] [ValidatePattern('^(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9])[.]){3}(([2]([0-4][0-9]|[5][0-5])|[0-1]?[0-9]?[0-9]))(\/[1-3]?[1-9])?$')] [string]$IpAddress,
2017-06-05 1

code -v:
1.12.2
19222cdc84ce72202478ba1cec5cb557b71163de
$pseditor.EditorServicesVersion:
1.2.1.0
$PSVersionTable:
Name Value
PSVersion 5.1.15063.296
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.15063.296
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

from editorsyntax.

keller4 avatar keller4 commented on July 4, 2024

Wonderful project. I almost hate to bring it up, but having syntax coloring problem. Regex seems to break it, and it doesn't come back until there's a comment with a single quote in it.

  • VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:32:36.023Z)
  • OS Version: Windows_NT x64 10.0.16299
  • Extensions:
    Extension|Author (truncated)|Version
    PowerShell|ms-|1.5.1

Example:
function test
{
param(
# Using customer IDs filter
[Parameter(Mandatory=$false,
ParameterSetName='Search')]
[ValidatePattern('^[A-Fa-f0-9]{8}-([A-Fa-f0-9]{4}-){3}[A-Fa-f0-9]{12}$')]
[string]
$UsingCustomerIDs
)
# Comment with ' in it
Get-ChildItem c:
}
image

from editorsyntax.

omniomi avatar omniomi commented on July 4, 2024

Fixed by #94

from editorsyntax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.