Lines Matching refs:lexer
3 jinja2.lexer
6 This module implements a Jinja / Python combination lexer. The
26 # environments with the same lexer
372 argument as :meth:`jinja2.lexer.Token.test`.
392 """Return a lexer which is probably cached."""
405 lexer = _lexer_cache.get(key)
406 if lexer is None:
407 lexer = Lexer(environment)
408 _lexer_cache[key] = lexer
409 return lexer
413 """Class that implements a lexer for a given environment. Automatically
416 Note that the lexer is not automatically bound to an environment.
417 Multiple environments can share the same lexer.
436 # we have to sort by length so that the lexer continues working