Skip to content
Myr

added jinja unicode whitespace handling

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent eaf493e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja/lexer.py+1 added-1 removed
37 unmodified lines
38_lexer_cache = WeakValueDictionary()394041# static regular expressions42whitespace_re = re.compile(r'\s+(?m)')42whitespace_re = re.compile(r'\s+(?um)')43name_re = re.compile(r'[a-zA-Z_][a-zA-Z0-9_]*')44string_re = re.compile(r"('([^'\\]*(?:\\.[^'\\]*)*)'"45 r'|"([^"\\]*(?:\\.[^"\\]*)*)")(?ms)')46integer_re = re.compile(r'\d+')
470 unmodified lines