-
-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from NeilMacMullen/multiline-pipe
Allow the user of multi-line pipes
- Loading branch information
Showing
10 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/Scriban.Tests/TestFiles/300-functions/311-func-pipe-error1.out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
text(4,4) : error : Error while parsing pipe expression: Expecting <expression> instead of ` | ||
` in: <expression> | <expression> | ||
text(5,1) : error : Error while parsing pipe expression: Expecting <expression> instead of `}}` in: <expression> | <expression> |
4 changes: 4 additions & 0 deletions
4
src/Scriban.Tests/TestFiles/300-functions/312-func-pipe-multiline.out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
a | | ||
b | ||
=== | ||
btesta |
8 changes: 8 additions & 0 deletions
8
src/Scriban.Tests/TestFiles/300-functions/312-func-pipe-multiline.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
a | | ||
b | ||
=== | ||
{{ | ||
"test" | | ||
string.append "a" | | ||
string.prepend "b" | ||
}} |
1 change: 1 addition & 0 deletions
1
src/Scriban.Tests/TestFiles/300-functions/321-func-anonymous1.out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[1, 2, 3] |
5 changes: 5 additions & 0 deletions
5
src/Scriban.Tests/TestFiles/300-functions/321-func-anonymous1.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- | ||
func call_array(p) | ||
ret [1,2,3] | array.filter @(do;ret p;end) | ||
end | ||
call_array true -}} |
1 change: 1 addition & 0 deletions
1
src/Scriban.Tests/TestFiles/300-functions/321-func-anonymous2.out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
99 |
5 changes: 5 additions & 0 deletions
5
src/Scriban.Tests/TestFiles/300-functions/321-func-anonymous2.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- | ||
a=99 | ||
fn=@(do;ret a;end) | ||
fn | ||
-}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters