• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1from .asdl_lexer import ASDLLexer
2from .peg_lexer import PEGLexer
3
4
5def setup(app):
6    # Used for highlighting Parser/Python.asdl in library/ast.rst
7    app.add_lexer("asdl", ASDLLexer)
8    # Used for highlighting Grammar/python.gram in reference/grammar.rst
9    app.add_lexer("peg", PEGLexer)
10
11    return {
12        "version": "1.0",
13        "parallel_read_safe": True,
14        "parallel_write_safe": True,
15    }
16