TwigBridge icon indicating copy to clipboard operation
TwigBridge copied to clipboard

How to customizing the Syntax?

Open lyongdee opened this issue 7 years ago • 1 comments

`$twig = new Twig_Environment(...);

$lexer = new Twig_Lexer($twig, array( 'tag_comment' => array('{#', '#}'), 'tag_block' => array('{%', '%}'), 'tag_variable' => array('{{', '}}'), 'interpolation' => array('#{', '}'), )); $twig->setLexer($lexer);`

???

lyongdee avatar Oct 26 '17 09:10 lyongdee

what is it you're asking exactly? What do you want to accomplish?

svenluijten avatar Mar 15 '18 16:03 svenluijten