PowerShell / EditorSyntax

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

incorrect syntax highlight in parameter type #56

Closed daviwil closed 6 years ago

daviwil commented 7 years ago

From @lipkau on August 22, 2017 12:49

System Details

1Projects                                                                                                                                                                                           13:09:06
I ♥ PScode -v
1.15.1
41abd21afdf7424c89319ee7cb0445cc6f376959
2Projects                                                                                                                                                                               0:00:00.233214:47:05
I ♥ PS$pseditor.EditorServicesVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
1      4      1      0

3Projects                                                                                                                                                                               0:00:00.010014:47:05
I ♥ PScode --list-extensions --show-versions
abusaidm.html-snippets@0.1.0
alefragnani.Bookmarks@0.15.2
annsk.alignment@0.3.0
anseki.vscode-color@0.4.5
christian-kohler.path-intellisense@1.4.2
codezombiech.gitignore@0.5.0
DavidAnson.vscode-markdownlint@0.10.0
dbankier.vscode-gist@0.5.3
donjayamanne.githistory@0.2.3
donjayamanne.jquerysnippets@0.0.1
donjayamanne.python@0.7.0
DotJoshJohnson.xml@1.9.2
eamodio.gitlens@4.4.0
ecmel.vscode-html-css@0.1.8
EditorConfig.EditorConfig@0.9.4
eg2.vscode-npm-script@0.2.0
fabianlauer.vs-code-xml-format@0.1.5
felixfbecker.php-debug@1.11.1
felixfbecker.php-intellisense@1.5.1
felixfbecker.php-pack@1.0.1
flesler.url-encode@1.1.0
formulahendry.code-runner@0.7.0
HookyQR.beautify@1.1.1
humao.rest-client@0.15.2
ikappas.phpcs@0.7.0
kenhowardpdx.vscode-gist@1.0.1
liuji-jim.vue@0.1.5
lonefy.vscode-JS-CSS-HTML-formatter@0.2.3
lukasz-wronski.ftp-sync@0.3.3
magicstack.MagicPython@1.0.12
mattlott.copy-github-url@0.1.0
michelemelluso.gitignore@1.0.1
mohsen1.prettify-json@0.0.3
ms-vscode.csharp@1.12.1
ms-vscode.PowerShell@1.4.1
ms-vscode.sublime-keybindings@2.9.1
msjsdiag.debugger-for-chrome@3.1.8
neilbrayfield.php-docblocker@1.2.0
onecentlin.laravel-blade@1.8.1
onecentlin.laravel5-snippets@1.3.4
patbenatar.advanced-new-file@0.5.0
PKief.material-icon-theme@2.1.0
qinjia.view-in-browser@0.0.5
rafa-acioly.laravel-helpers@0.2.2
rubbersheep.gi@0.2.11
Rubymaniac.vscode-paste-and-indent@0.0.8
ryannaddy.laravel-artisan@0.0.7
searKing.preview-vscode@1.1.5
Shan.code-settings-sync@2.8.3
shinnn.stylelint@0.28.0
slevesque.vscode-autohotkey@0.2.1
Sophisticode.php-formatter@0.2.4
streetsidesoftware.code-spell-checker@1.3.6
tht13.python@0.2.3
Tyriar.sort-lines@1.3.0
v4run.transpose@0.0.5
vittorioromeo.expand-selection-to-scope@0.2.0
vsmobile.cordova-tools@1.2.10
waderyan.gitblame@2.1.0
wcwhitehead.bootstrap-3-snippets@0.1.0
xabikos.JavaScriptSnippets@1.4.1
Zarel.sublime-commands@0.1.0
zhuangtongfa.Material-theme@2.10.9
Zignd.html-css-class-completion@1.8.1
4Projects                                                                                                                                                                               0:00:00.378614:47:06
I ♥ PS$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.15063.502
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.502
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I have a parameter declared as: [X509Certificate] $Certificate. However, the numbers in the typename are not colored correctly (see screenshot)

Attached Logs

image

Copied from original issue: PowerShell/vscode-powershell#1001

omniomi commented 6 years ago

Fixed by #94