Lines Matching refs:lexer
1 """Implements a Jinja / Python combination lexer. The ``Lexer`` class
21 # environments with the same lexer
403 argument as :meth:`jinja2.lexer.Token.test`.
427 """Return a lexer which is probably cached."""
442 lexer = _lexer_cache.get(key)
444 if lexer is None:
445 _lexer_cache[key] = lexer = Lexer(environment)
447 return lexer
470 """Class that implements a lexer for a given environment. Automatically
473 Note that the lexer is not automatically bound to an environment.
474 Multiple environments can share the same lexer.
495 # we have to sort by length so that the lexer continues working