PrimalS gets confused by ` in Powershell

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION 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.
This topic is 12 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
PeterW
Posts: 29
Last visit: Fri Aug 26, 2016 1:21 am

PrimalS gets confused by ` in Powershell

Post by PeterW »

PrimalScript gets very confused when the ` (backtick) character is used as escape for a quote in powershell. The color coding goes beserk. Because of that quite a lot of handy features are not available (everything is comment).
Is there a way to avoid this or will there be an update?
Thanks for your time,
Peter
User avatar
Alexander Riedel
Posts: 8488
Last visit: Mon Apr 15, 2024 3:28 pm
Answers: 20
Been upvoted: 37 times

PrimalS gets confused by ` in Powershell

Post by Alexander Riedel »

Do you have a specific code example to illustrate this?
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
PeterW
Posts: 29
Last visit: Fri Aug 26, 2016 1:21 am

PrimalS gets confused by ` in Powershell

Post by PeterW »

Sorry, forget this post, i am unable to reproduce the issue.
The code was:
$objRange.Formula = "=IF(G1=1,`"IN`",`"OUT`")"
Cannot make it fail anymore.

There was another moment when PrimalScript was getting unresponsive during code input, obviously trying to figure out how to color the various parts or checking syntax. Very scary, but in the end nothing was lost.

I never had this while coding vbscript.

Sometimes i have to use a trick to get rid of a syntax-error message that is in error by appending a space or <enter> and removing it. That forces PrimalScript to recognize the change in a line.
Anyway, thanks for the marvelous PrimalScript.

Peter
User avatar
Alexander Riedel
Posts: 8488
Last visit: Mon Apr 15, 2024 3:28 pm
Answers: 20
Been upvoted: 37 times

PrimalS gets confused by ` in Powershell

Post by Alexander Riedel »

Ok, please let us know if it happens again, take a screenshot.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 12 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.