From ac0c0d08e8d9fc20e416e04fac6da8b161da147b Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 5 Jun 2010 14:37:32 +0200 Subject: [PATCH] Committed fix for raw testcase. --HG-- branch : trunk --- jinja2/lexer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jinja2/lexer.py b/jinja2/lexer.py index 98d85d9..0d3f696 100644 --- a/jinja2/lexer.py +++ b/jinja2/lexer.py @@ -432,9 +432,10 @@ class Lexer(object): 'root': [ # directives (c('(.*?)(?:%s)' % '|'.join( - [r'(?P(?:\s*%s\-|%s)\s*raw\s*%s)' % ( + [r'(?P(?:\s*%s\-|%s)\s*raw\s*(?:\-%s\s*|%s))' % ( e(environment.block_start_string), e(environment.block_start_string), + e(environment.block_end_string), e(environment.block_end_string) )] + [ r'(?P<%s_begin>\s*%s\-|%s)' % (n, r, r) -- 2.26.2