diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2017-11-05 20:04:32 +0100 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2017-11-05 20:04:32 +0100 |
| commit | 3799714d53dac4e5d9543f20cb155c9e3cd8a0a1 (patch) | |
| tree | 5d810b6af351202637c1ed658ea42a114b6f98a9 /lexer/smarty_internal_templatelexer.plex | |
| parent | dd9c076dfaef0be4059961e09b9ca1f706c0feff (diff) | |
| download | smarty-3799714d53dac4e5d9543f20cb155c9e3cd8a0a1.tar.gz smarty-3799714d53dac4e5d9543f20cb155c9e3cd8a0a1.tar.bz2 smarty-3799714d53dac4e5d9543f20cb155c9e3cd8a0a1.zip | |
lexer/parser optimization
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
| -rw-r--r-- | lexer/smarty_internal_templatelexer.plex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index a92653d0..fb185db1 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -306,7 +306,7 @@ class Smarty_Internal_Templatelexer aptr = ~\s*[=][>]\s*~ singlequotestring = ~'[^'\\]*(?:\\.[^'\\]*)*'~ backtick = ~[`]~ - vert = ~[|]~ + vert = ~[|][@]?~ qmark = ~\s*[?]\s*~ constant = ~[_]+[A-Z0-9][0-9A-Z_]*|[A-Z][0-9A-Z_]*(?![0-9A-Z_]*[a-z])~ attr = ~\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\s*[=]\s*~ @@ -344,7 +344,7 @@ class Smarty_Internal_Templatelexer if (isset($match[0][1])) { $to = $match[0][1] + strlen($match[0][0]); } else { - $this->compiler->trigger_template_error ("missing or misspelled comment closing tag '*{$this->smarty->getRightDelimiter()}'"); + $this->compiler->trigger_template_error ("missing or misspelled comment closing tag '{$this->smarty->getRightDelimiter()}'"); } $this->value = substr($this->data,$this->counter,$to-$this->counter); return false; |
