summaryrefslogtreecommitdiff
path: root/lexer/smarty_internal_templatelexer.plex
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2018-10-09 03:36:14 +0200
committeruwetews <uwe.tews@googlemail.com>2018-10-09 03:36:14 +0200
commit7f531f6a444f7a0a041394057c2dfb3d22e95705 (patch)
treeb8148c3abdc80c2c74b1d1319e8c7055c68b3bb9 /lexer/smarty_internal_templatelexer.plex
parent9301ba4bfcfff578995489dd991a77ee118380ee (diff)
downloadsmarty-7f531f6a444f7a0a041394057c2dfb3d22e95705.tar.gz
smarty-7f531f6a444f7a0a041394057c2dfb3d22e95705.tar.bz2
smarty-7f531f6a444f7a0a041394057c2dfb3d22e95705.zip
09.10.2018
- bugfix fix of 26.8.2017 https://github.com/smarty-php/smarty/issues/327 modifier is applied to sum expression https://github.com/smarty-php/smarty/issues/491 - bugfix indexed arrays could not be defined "array(...)""
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
-rw-r--r--lexer/smarty_internal_templatelexer.plex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex
index afe1da90..ac125025 100644
--- a/lexer/smarty_internal_templatelexer.plex
+++ b/lexer/smarty_internal_templatelexer.plex
@@ -338,6 +338,7 @@ class Smarty_Internal_Templatelexer
if = ~(if|elseif|else if|while)\s+~
for = ~for\s+~
makenocache = ~make_nocache\s+~
+ array = ~array~
foreach = ~foreach(?![^\s])~
setfilter = ~setfilter\s+~
instanceof = ~\s+instanceof\s+~
@@ -550,6 +551,9 @@ class Smarty_Internal_Templatelexer
at {
$this->token = Smarty_Internal_Templateparser::TP_AT;
}
+ array openP {
+ $this->token = Smarty_Internal_Templateparser::TP_ARRAYOPEN;
+ }
hatch {
$this->token = Smarty_Internal_Templateparser::TP_HATCH;
}