Skip to content

Commit

Permalink
- improvement repeated delimiter like {{ and }} will be treated as li…
Browse files Browse the repository at this point in the history
  • Loading branch information
uwetews committed Aug 9, 2017
1 parent 2c1f031 commit 511773c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lexer/smarty_internal_templatelexer.plex
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ class Smarty_Internal_Templatelexer
$this->pldel = preg_quote($this->smarty->left_delimiter, '/');
$this->ldel = $this->pldel . ($this->smarty->auto_literal ? '(?!\\s+)' : '\\s*');
$this->ldel_length = strlen($this->smarty->left_delimiter);
$rdel = preg_quote($this->smarty->right_delimiter, '/');
$this->rdel = "(?<!{$rdel}){$rdel}(?!{$rdel})";
$this->rdel = preg_quote($this->smarty->right_delimiter, '/');
$this->rdel_length = strlen($this->smarty->right_delimiter);
$this->smarty_token_names['LDEL'] = $this->smarty->left_delimiter;
$this->smarty_token_names['RDEL'] = $this->smarty->right_delimiter;
Expand Down

0 comments on commit 511773c

Please sign in to comment.