Skip to content
Myr

Inversed invalid logic

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 f823bdb · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:jinja2/lexer.py+3 added-3 removed
37 unmodified lines
38# to handle unicode identifiers, otherwise the standard ASCII one.39try:40 compile('föö', '<unknown>', 'eval')41except SyntaxError:42 name_re = re.compile(r'\b\w+\b')43 check_ident = True44else: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')46 check_ident = True4748float_re = re.compile(r'(?<!\.)\d+\.\d+')49newline_re = re.compile(r'(\r\n|\r|\n)')50
679 unmodified lines