| OLD | NEW |
| 1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
| 2 """ | 2 """ |
| 3 jinja2.lexer | 3 jinja2.lexer |
| 4 ~~~~~~~~~~~~ | 4 ~~~~~~~~~~~~ |
| 5 | 5 |
| 6 This module implements a Jinja / Python combination lexer. The | 6 This module implements a Jinja / Python combination lexer. The |
| 7 `Lexer` class provided by this module is used to do some preprocessing | 7 `Lexer` class provided by this module is used to do some preprocessing |
| 8 for Jinja. | 8 for Jinja. |
| 9 | 9 |
| 10 On the one hand it filters out invalid operators like the bitshift | 10 On the one hand it filters out invalid operators like the bitshift |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 # if loop terminated without break we haven't found a single match | 724 # if loop terminated without break we haven't found a single match |
| 725 # either we are at the end of the file or we have a problem | 725 # either we are at the end of the file or we have a problem |
| 726 else: | 726 else: |
| 727 # end of text | 727 # end of text |
| 728 if pos >= source_length: | 728 if pos >= source_length: |
| 729 return | 729 return |
| 730 # something went wrong | 730 # something went wrong |
| 731 raise TemplateSyntaxError('unexpected char %r at %d' % | 731 raise TemplateSyntaxError('unexpected char %r at %d' % |
| 732 (source[pos], pos), lineno, | 732 (source[pos], pos), lineno, |
| 733 name, filename) | 733 name, filename) |
| OLD | NEW |