Lines Matching refs:lexer
2 """Implements a Jinja / Python combination lexer. The ``Lexer`` class
20 # environments with the same lexer
400 argument as :meth:`jinja2.lexer.Token.test`.
424 """Return a lexer which is probably cached."""
439 lexer = _lexer_cache.get(key)
440 if lexer is None:
441 lexer = Lexer(environment)
442 _lexer_cache[key] = lexer
443 return lexer
460 """Class that implements a lexer for a given environment. Automatically
463 Note that the lexer is not automatically bound to an environment.
464 Multiple environments can share the same lexer.
485 # we have to sort by length so that the lexer continues working