__init__.py 409 B

123456789101112131415161718192021
  1. """
  2. Lexer interface and implementations.
  3. Used for syntax highlighting.
  4. """
  5. from __future__ import annotations
  6. from .base import DynamicLexer, Lexer, SimpleLexer
  7. from .pygments import PygmentsLexer, RegexSync, SyncFromStart, SyntaxSync
  8. __all__ = [
  9. # Base.
  10. "Lexer",
  11. "SimpleLexer",
  12. "DynamicLexer",
  13. # Pygments.
  14. "PygmentsLexer",
  15. "RegexSync",
  16. "SyncFromStart",
  17. "SyntaxSync",
  18. ]