Lines Matching full:lexer
3 jinja2.lexer
6 This module implements a Jinja / Python combination lexer. The
7 `Lexer` class provided by this module is used to do some preprocessing
28 # environments with the same lexer
214 Used by the `Lexer` to specify known errors.
362 argument as :meth:`jinja2.lexer.Token.test`.
382 """Return a lexer which is probably cached."""
395 lexer = _lexer_cache.get(key)
396 if lexer is None:
397 lexer = Lexer(environment)
398 _lexer_cache[key] = lexer
399 return lexer
402 class Lexer(object):
403 """Class that implements a lexer for a given environment. Automatically
406 Note that the lexer is not automatically bound to an environment.
407 Multiple environments can share the same lexer.
426 # we have to sort by length so that the lexer continues working