- Modernized code a bit and added variables to blocks

This commit is contained in:
mcndave committed 2026-07-01 12:57:01 -04:00
1 parent 722131d801
commit 778f84116b
12 files changed
+146 -52

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ namespace Picea\ControlStructure;
class SwitchToken implements ControlStructure {
public array $token = [ "switch", "case", "endswitch" ];
public array $token = [ "switch", "case", "endcase", "endswitch", "/switch" ];
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string {
switch($token) {