fabpot/Twig — Issue #657: lexer option via Twig_Environment
Author: badlee
Created: 2012-03-08 09:03:48+00:00
State: open

I update Twig_Environment in **Twig/Envirenment.php** for suport lexer option
add after line ```protected $staging;``` : ```protected $lexerOptions;```
add after line ```'auto_reload' => null,``` : ```'lexer' => array(),```
add after line ```$this->debug = (bool) $options['debug']; : $this->lexerOptions = $options['lexer'];```
update line ```$this->lexer = new Twig_Lexer($this);``` to ```$this->lexer = new Twig_Lexer($this,$this->lexerOptions);```

now i can change lexer tag :

```php
array(
'tag_comment' => array(''),/*default array('{#', '#}')*/
'tag_block' => array(''),/*default array('{%', '%}')*/
'tag_variable' => array(''),/*default array('{{', '}}')*/
)
))
?>
```

```html

```

You can add this update to **next version** ?

***PS:** Excuse my english i'm french speaker*