diff options
| author | uwetews <uwe.tews@googlemail.com> | 2015-12-30 22:11:15 +0100 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2015-12-30 22:11:15 +0100 |
| commit | 7eb56ac5e3d9525fa3a8c73b9acc6c1c7264f19c (patch) | |
| tree | 45b8ba853ff9d16acc7a6aff42b557e704cc16ae /lexer/smarty_internal_templatelexer.plex | |
| parent | 34062d45b7e0f3e8ab4509d284cc2f80adcfd5b6 (diff) | |
| download | smarty-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.plex | 2 |
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*~ |
