- Added while/endwhile and do/while syntaxes
- Fix the abstractclass requirement of parse() function
This commit is contained in:
1 parent
33298ff2e4
commit
bb29a56077
36 files changed
+115
-73
No files matched your search
@@ -8,7 +8,7 @@ class EchoRawToken implements Syntax {
|
||||
|
||||
public string $tokenClose = "\}\}";
|
||||
|
||||
public function parse(/*\Picae\Compiler\Context*/ &$content, string &$sourceCode)
|
||||
public function parse(\Picea\Compiler\Context &$content, string &$sourceCode)
|
||||
{
|
||||
$sourceCode = preg_replace_callback("#({$this->tokenOpen})(.*?)({$this->tokenClose})#s", function ($matches) {
|
||||
$line = trim($matches[2], " \t\n\r\0\x0B;");
|
||||
|
||||
Reference in new issue
Block a user