- First task of v2 done, tokens can now have unlimited options attached to it
This commit is contained in:
1 parent
afeb8789b5
commit
acd9f8c72e
8 files changed
+82
-41
No files matched your search
@@ -6,7 +6,7 @@ use Picea\Compiler\Context;
|
||||
|
||||
class PrintExtension implements Extension {
|
||||
|
||||
public array $token = [ "echo", "echo.raw", "print", "print.raw", "printf", "printf.raw" ];
|
||||
public array $token = [ "echo", "print", "printf" ];
|
||||
|
||||
public int $flag = \ENT_QUOTES;
|
||||
|
||||
@@ -20,6 +20,8 @@ class PrintExtension implements Extension {
|
||||
|
||||
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
|
||||
{
|
||||
$opt = $context->tokenOptions($token);
|
||||
|
||||
switch($token) {
|
||||
case 'echo':
|
||||
case 'print':
|
||||
|
||||
Reference in new issue
Block a user