From: Armin Ronacher Date: Wed, 1 Apr 2009 17:16:25 +0000 (+0200) Subject: Fixed another bug with line comments X-Git-Tag: 2.2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bb3ab72c9d369d3c16f81282b45f35618f8a48c;p=thirdparty%2Fjinja.git Fixed another bug with line comments --HG-- branch : trunk --- diff --git a/jinja2/lexer.py b/jinja2/lexer.py index 8f639327..3a925bb6 100644 --- a/jinja2/lexer.py +++ b/jinja2/lexer.py @@ -144,7 +144,7 @@ def compile_rules(environment): (len(environment.block_start_string), 'block', e(environment.block_start_string)), (len(environment.variable_start_string), 'variable', - e(environment.variable_start_string)), + e(environment.variable_start_string)) ] if environment.line_statement_prefix is not None: @@ -152,7 +152,7 @@ def compile_rules(environment): r'^\s*' + e(environment.line_statement_prefix))) if environment.line_comment_prefix is not None: rules.append((len(environment.line_comment_prefix), 'linecomment', - r'(?:^|(?