| 1 | """Implements a Jinja / Python combination lexer. The ``Lexer`` class |
| 2 | is used to do some preprocessing. It filters out invalid operators like |
| 3 | the bitshift operators we don't allow in templates. It separates |
| 4 | template code and python code in expressions. |