You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c =>c.Literal("@/").TextUntil('\n','\r'),// @/ C#-like comments
737
743
c =>c.Literal("@*").TextUntil("*@").Literal("*@"))// @*...*@ comments
738
-
.ConfigureForSkip(),// Ignore all errors when parsing comments and unnecessary whitespace
739
-
ParserSkippingStrategy.TryParseThenSkipLazy)// Allows rules to capture skip-rules contents if can, such as whitespaces
740
-
.UseCaching().RecordWalkTrace();// If caching is disabled, prepare to wait for a long time (seconds) when encountering an error :P (you will also get a million of errors, seriously)
744
+
.ConfigureForSkip();// Ignore all errors when parsing comments and unnecessary whitespace
745
+
746
+
// Settings //
747
+
builder.Settings
748
+
.Skip(b =>b.Rule("skip"),ParserSkippingStrategy.TryParseThenSkipLazy)// Allows rules to capture skip-rules contents if can, such as whitespaces
749
+
.UseCaching();// If caching is disabled, prepare to wait for a long time (seconds) when encountering an error :P (you will also get a million of errors, seriously)
Copy file name to clipboardExpand all lines: src/LLTSharp/TemplateNodes/MessagesTemplateForeachNode.cs
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
usingSystem;
2
2
usingSystem.Collections.Generic;
3
-
usingSystem.Text;
4
3
usingLLTSharp.DataAccessors;
5
-
usingMicrosoft.Extensions.AI;
6
4
7
5
namespaceLLTSharp.TemplateNodes
8
6
{
@@ -41,15 +39,15 @@ public MessagesTemplateForeachNode(TemplateExpressionNode source, MessagesTempla
41
39
IterableName=string.IsNullOrEmpty(iterableName)?thrownewArgumentException("The iterable name cannot be null or empty.",nameof(iterableName)):iterableName;
0 commit comments