Comments (8)
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.
From @rkeithhill on February 28, 2017 22:26
It should go in https://github.com/powershell/editorsyntax.
from editorsyntax.
Thanks @daviwil and @rkeithhill.
from editorsyntax.
Windows 7
VScode 1.9.1
PowerShell extension 0.9.0
PowerShell version 5.1.14409.1005
from editorsyntax.
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.
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,
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.
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:
}
from editorsyntax.
Fixed by #94
from editorsyntax.
Related Issues (20)
- its possible to implement empty coallesing operator HOT 3
- Comment Based Help Keywords and Their Parameters Not Highlighting Correctly HOT 2
- FTLOG Don't use light gray on a white background
- Powershell syntax highlighting disrupted by single quotes in HTML
- Function without arguments not colorized HOT 2
- foreach not scoped correctly after curly brace
- Asterisk is not recognized as valid function/cmdlet name character HOT 1
- Export-Member color coding issue
- Parameters are shown using variables-color HOT 7
- Version v2021.5.1 Semantic Textmate Scope is incorrect for negative numeric literals, when used as a parameter HOT 4
- No Syntax Highlighting for `enum` declarations HOT 2
- #Requires syntax highlighting bug HOT 2
- Syntax Highlighting doesn't recognize ? as part of a variable name
- Generic method type parameter support
- Syntax Highlighting: region incorrectly highlighted when defined as part of a hashtable
- Function name not recognized in definition when on different line
- word_wrap settings does not obey the global settings in sublime text HOT 1
- Attributes not attached to parameters aren't recognized as attributes but as a generic type
- Code thinks ArgumentCompleter attribute on parameter is the parameter's type
- Variables that are built-in constants are not highlighted, like `$Error` and `$PSVersionTable`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorsyntax.