Skip to content
Myr

Added missing identifiers to the name re

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

authored by Armin Ronacher · committed by Armin Ronacher · parent d6a4a34 · Browse files · 1 file+7 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+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:jinja2/lexer.py+7 added-1 removed
40 unmodified lines
41except SyntaxError:42 name_re = re.compile(r'\b[a-zA-Z_][a-zA-Z0-9_]*\b')43 check_ident = False44else:45 name_re = re.compile(r'\b\w+\b')45 # for whatever reason these do not exist in 'some' verisons of46 # python 3 within \w so we just add them. These are47 # 0x1885 MONGOLIAN LETTER ALI GALI BALUDA48 # 0x1886 MONGOLIAN LETTER ALI GALI THREE BALUDA49 # 0x2118 SCRIPT CAPITAL P50 # 0x212e ESTIMATED SYMBOL51 name_re = re.compile(r'\b[\w\u1885\u1886\u2118\u212e]+\b')52 check_ident = True5354float_re = re.compile(r'(?<!\.)\d+\.\d+')55newline_re = re.compile(r'(\r\n|\r|\n)')
680 unmodified lines