mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11843] The twig lexer fixes DEFINE variables with underscores again
https://github.com/phpbb/phpbb3/pull/1708 accidentally stopped the twig lexer from fixing DEFINE variables with underscores in them. This commit restores that functionality. PHPBB3-11843
This commit is contained in:
parent
fc7a35be38
commit
42884546cc
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ class phpbb_template_twig_lexer extends Twig_Lexer
|
||||||
|
|
||||||
// Fix tokens that may have inline variables (e.g. <!-- DEFINE $TEST = '{FOO}')
|
// Fix tokens that may have inline variables (e.g. <!-- DEFINE $TEST = '{FOO}')
|
||||||
$code = $this->fix_inline_variable_tokens(array(
|
$code = $this->fix_inline_variable_tokens(array(
|
||||||
'DEFINE \$[a-zA-Z0-9]+ =',
|
'DEFINE \$[a-zA-Z0-9_]+ =',
|
||||||
'INCLUDE',
|
'INCLUDE',
|
||||||
'INCLUDEPHP',
|
'INCLUDEPHP',
|
||||||
'INCLUDEJS',
|
'INCLUDEJS',
|
||||||
|
|
Loading…
Add table
Reference in a new issue