Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CommandFlowControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public override void Update(float time)
}
}

[CommandAttribute("IF ~_{}")]
[CommandAttribute("IF /_{}")]
public class CommandIf : Command
{
List<Command> commands = new List<Command>();
Expand Down Expand Up @@ -115,7 +115,7 @@ public override void Update(float time)
}
}

[CommandAttribute("UNTIL ~_{}")]
[CommandAttribute("UNTIL /_{}")]
public class CommandUntilLoop : Command
{
List<Command> commands = new List<Command>();
Expand Down
2 changes: 1 addition & 1 deletion CommandTemporal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public override void Evaluate()
}
}

[CommandAttribute("WHEN ~ THEN *")]
[CommandAttribute("WHEN / THEN *")]
public class CommandWhen : Command
{
private Command targetCommand;
Expand Down
5 changes: 5 additions & 0 deletions Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ public static String BuildInnerRegex(String kegex)
output += "([^{}\"]+)";
break;

case "/":
// Anything but braces
output += "([^{}]+)";
break;

case "[":
int choiceEnd = kegex.IndexOf(']', i);
var choices = kegex.Substring(i + 1, choiceEnd - i - 1).Split(',');
Expand Down