Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
syntax.py File Reference

Go to the source code of this file.

Data Structures

class  SyntaxTheme
 
class  PygmentsSyntaxTheme
 
class  ANSISyntaxTheme
 
class  _SyntaxHighlightRange
 
class  Syntax
 

Namespaces

namespace  pip
 
namespace  pip._vendor
 
namespace  pip._vendor.rich
 
namespace  pip._vendor.rich.syntax
 

Functions

Optional[int_get_code_index_for_syntax_position (Sequence[int] newlines_offsets, SyntaxPosition position)
 

Variables

 TokenType = Tuple[str, ...]
 
str WINDOWS = "Windows"
 
str DEFAULT_THEME = "monokai"
 
dict ANSI_LIGHT
 
dict ANSI_DARK
 
dict RICH_SYNTAX_THEMES = {"ansi_light": ANSI_LIGHT, "ansi_dark": ANSI_DARK}
 
int NUMBERS_COLUMN_DEFAULT_PADDING = 2
 
 SyntaxPosition = Tuple[int, int]
 
 parser
 
 metavar
 
 help
 
 dest
 
 action
 
 default
 
 type
 
 int
 
 args = parser.parse_args()
 
 console = Console(force_terminal=args.force_color, width=args.width)
 
 code = sys.stdin.read()
 
 syntax
 
 soft_wrap