- Modernized code a bit and added variables to blocks
This commit is contained in:
1 parent
722131d801
commit
778f84116b
12 files changed
+146
-52
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user