mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 13:51:36 +01:00
- bugfix plugin names starting with "php" did not compile https://github.com/smarty-php/smarty/issues/147
This commit is contained in:
@@ -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*~
|
||||
|
||||
Reference in New Issue
Block a user