Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/prompt_toolkit/lexers/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

5 statements  

1""" 

2Lexer interface and implementations. 

3Used for syntax highlighting. 

4""" 

5 

6from __future__ import annotations 

7 

8from .base import DynamicLexer, Lexer, SimpleLexer 

9from .pygments import PygmentsLexer, RegexSync, SyncFromStart, SyntaxSync 

10 

11__all__ = [ 

12 # Base. 

13 "Lexer", 

14 "SimpleLexer", 

15 "DynamicLexer", 

16 # Pygments. 

17 "PygmentsLexer", 

18 "RegexSync", 

19 "SyncFromStart", 

20 "SyntaxSync", 

21]