__init__.py 408 B

1234567891011121314151617181920
  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. ]