From: Armin Ronacher Date: Sat, 1 Jul 2017 22:30:25 +0000 (+0200) Subject: Added missing identifiers to the name re X-Git-Tag: 2.10~22^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2177fc4aae439305eb7d36ba8991f42d70f8f766;p=thirdparty%2Fjinja.git Added missing identifiers to the name re --- diff --git a/jinja2/lexer.py b/jinja2/lexer.py index 803a1928..3d48475a 100644 --- a/jinja2/lexer.py +++ b/jinja2/lexer.py @@ -42,7 +42,13 @@ except SyntaxError: name_re = re.compile(r'\b[a-zA-Z_][a-zA-Z0-9_]*\b') check_ident = False else: - name_re = re.compile(r'\b\w+\b') + # for whatever reason these do not exist in 'some' verisons of + # python 3 within \w so we just add them. These are + # 0x1885 MONGOLIAN LETTER ALI GALI BALUDA + # 0x1886 MONGOLIAN LETTER ALI GALI THREE BALUDA + # 0x2118 SCRIPT CAPITAL P + # 0x212e ESTIMATED SYMBOL + name_re = re.compile(r'\b[\w\u1885\u1886\u2118\u212e]+\b') check_ident = True float_re = re.compile(r'(?