Skip to content

Commit a90c9dc

Browse files
author
James Brundage
committed
Merge branch 'PipeScriptImprovements' of https://github.com/StartAutomating/PipeScript into PipeScriptImprovements
2 parents 1bf011a + 7cc044d commit a90c9dc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Transpilers/Syntax/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ This directory and it's subdirectories contain syntax changes that enable common
4444
{
4545
'/[a|b]/'
4646
} | .>PipeScript
47+
48+
# This will become:
49+
50+
[regex]::new('[a|b]', 'IgnoreCase')
4751
~~~
4852

4953
## RegexLiteral Example 2
@@ -53,13 +57,18 @@ This directory and it's subdirectories contain syntax changes that enable common
5357
{
5458
"/[$a|$b]/"
5559
} | .>PipeScript
60+
61+
# This will become:
62+
63+
[regex]::new("[$a|$b]", 'IgnoreCase'
5664
~~~
5765

5866
## RegexLiteral Example 3
5967

6068

6169
~~~PowerShell
62-
{@'
70+
{
71+
@'
6372
/
6473
# Heredocs Regex literals will have IgnorePatternWhitespace by default, which allows comments
6574
^ # Match the string start
@@ -75,7 +84,7 @@ This directory and it's subdirectories contain syntax changes that enable common
7584
~~~PowerShell
7685
{
7786
$Keywords = "looking", "for", "these", "words"
78-
@"
87+
@"
7988
/
8089
# Double quoted heredocs can still contain variables
8190
[\s\p{P}]{0,1} # Whitespace or punctuation

0 commit comments

Comments
 (0)