summaryrefslogtreecommitdiff
path: root/lexer/smarty_internal_templatelexer.plex
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2015-12-30 22:11:15 +0100
committeruwetews <uwe.tews@googlemail.com>2015-12-30 22:11:15 +0100
commit7eb56ac5e3d9525fa3a8c73b9acc6c1c7264f19c (patch)
tree45b8ba853ff9d16acc7a6aff42b557e704cc16ae /lexer/smarty_internal_templatelexer.plex
parent34062d45b7e0f3e8ab4509d284cc2f80adcfd5b6 (diff)
downloadsmarty-7eb56ac5e3d9525fa3a8c73b9acc6c1c7264f19c.tar.gz
smarty-7eb56ac5e3d9525fa3a8c73b9acc6c1c7264f19c.tar.bz2
smarty-7eb56ac5e3d9525fa3a8c73b9acc6c1c7264f19c.zip
- bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
-rw-r--r--lexer/smarty_internal_templatelexer.plex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex
index 721b528c..7a2d81f5 100644
--- a/lexer/smarty_internal_templatelexer.plex
+++ b/lexer/smarty_internal_templatelexer.plex
@@ -266,7 +266,7 @@ class Smarty_Internal_Templatelexer
namespace = ~([0-9]*[a-zA-Z_]\w*)?(\\[0-9]*[a-zA-Z_]\w*)+~
all = ~[\S\s]+~
emptyjava = ~[{][}]~
- phptag = ~(SMARTYldel\s*php(.*?)SMARTYrdel)|(SMARTYldel\s*[/]phpSMARTYrdel)~
+ phptag = ~(SMARTYldel\s*php([ ].*?)?SMARTYrdel)|(SMARTYldel\s*[/]phpSMARTYrdel)~
phpstart = ~(<[?]((php\s+|=)|\s+))|(<[%])|(<[?]xml\s+)|(<script\s+language\s*=\s*["']?\s*php\s*["']?\s*>)|([?][>])|([%][>])~
slash = ~[/]~
ldel = ~SMARTYldel\s*~