diff --git a/src/Lexer.php b/src/Lexer.php index 6fb8dd062..67d94ab92 100644 --- a/src/Lexer.php +++ b/src/Lexer.php @@ -117,7 +117,7 @@ class Lexer implements \Twig_LexerInterface // #} 'lex_comment' => '{ (?:'. - preg_quote($this->options['whitespace_trim']).preg_quote($this->options['tag_comment'][1], '#').'\s*\n?'. // -#}\s*\n? + preg_quote($this->options['whitespace_trim'].$this->options['tag_comment'][1], '#').'\s*\n?'. // -#}\s*\n? '|'. preg_quote($this->options['whitespace_line_trim'].$this->options['tag_comment'][1], '#').'['.$this->options['whitespace_line_chars'].']*'. // ~#}[ \t\0\x0B]* '|'.