Code Formatting & Syntax highlighting issue?

Support for all customers who have purchased a SAPIEN PowerShell Studio product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
OldLost
Posts: 55
Joined: Mon Jul 22, 2013 7:32 am

Code Formatting & Syntax highlighting issue?

Post by OldLost » Mon Apr 03, 2017 11:49 am

PowerShell Studio 2017 v5.4.137 x64
Windows Server 2012 R2 64bit

These both work in PowerShell itself, but PS Studio does not want to syntax highlight the second one properly.
4-3-2017 12-01-00 PM.jpg
4-3-2017 12-01-00 PM.jpg (56.55 KiB) Viewed 551 times
Also, in the second, "Format Script" wants to put a space after the dash before "Pattern".

Is this a bug perhaps? Or is it me?

User avatar
davidc
Posts: 5838
Joined: Thu Aug 18, 2011 4:56 am

Re: Code Formatting & Syntax highlighting issue?

Post by davidc » Mon Apr 03, 2017 2:03 pm

This is indeed is a bug (with the parser) and it will be resolved in the next service release.
David
SAPIEN Technologies, Inc.