我们从Python开源项目中,提取了以下26个代码示例,用于说明如何使用jinja2._stringdefs.xid_continue()。
def _make_name_re(): try: compile('föö', '<unknown>', 'eval') except SyntaxError: return re.compile(r'\b[a-zA-Z_][a-zA-Z0-9_]*\b') import jinja2 from jinja2 import _stringdefs name_re = re.compile(r'[%s][%s]*' % (_stringdefs.xid_start, _stringdefs.xid_continue)) # Save some memory here sys.modules.pop('jinja2._stringdefs') del _stringdefs del jinja2._stringdefs return name_re # we use the unicode identifier rule if this python version is able # to handle unicode identifiers, otherwise the standard ASCII one.