Skip to content

Commit

Permalink
继承PregCompiler重写parseCodeBlock方法,能使用父类的变量
Browse files Browse the repository at this point in the history
  • Loading branch information
iamxcd committed Jun 25, 2023
1 parent 7d57cd5 commit 07a416a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Compiler/PregCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
class PregCompiler extends AbstractCompiler
{
// add slashes tag name
private string $openTagE = '\{\{';
protected string $openTagE = '\{\{';

private string $closeTagE = '\}\}';
protected string $closeTagE = '\}\}';

/**
* like :
* ~^(break|continue|switch|case|default|endswitch|foreach|endforeach|for|endfor|if|elseif|else|endif)[^\w-]~
*
* @var string
*/
private string $blockPattern = '';
protected string $blockPattern = '';

private string $directivePattern = '';
protected string $directivePattern = '';

/**
* @param string $open
Expand Down

0 comments on commit 07a416a

Please sign in to comment.