This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/pycon/pycon_test.pycon.output
Jean Abou-Samra c97762448b
Refactor PythonConsoleLexer as a DelegatingLexer (#2412)
This is simpler and more reliable than hand-coding the state machine.

Fixes #2411
2023-04-17 18:41:55 +02:00

65 lines
1.4 KiB
Text
Generated

'>>> ' Generic.Prompt
':' Punctuation
'\n' Text.Whitespace
' File ' Text
'"<stdin>"' Name.Builtin
', line ' Text
'1' Literal.Number
'\n' Text.Whitespace
' ' Text.Whitespace
':' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'^' Punctuation.Marker
'\n' Text.Whitespace
'SyntaxError' Generic.Error
': ' Text
'invalid syntax' Name
'\n' Text.Whitespace
'' Text
'>>> ' Generic.Prompt
'\n' Text.Whitespace
'KeyboardInterrupt\n' Generic.Output
'>>>' Generic.Prompt
'\n' Text.Whitespace
'\n' Generic.Output
'>>> ' Generic.Prompt
'1' Literal.Number.Integer
'/' Operator
'0' Literal.Number.Integer
'\n' Text.Whitespace
'Traceback (most recent call last):\n' Generic.Traceback
' ' Text.Whitespace
'...' Comment
'\n' Text.Whitespace
'ZeroDivisionError' Generic.Error
'\n' Text.Whitespace
'\n' Text.Whitespace
'' Text
'>>> ' Generic.Prompt
'1' Literal.Number.Integer
'/' Operator
'0' Literal.Number.Integer
' ' Text
'# this used to swallow the traceback' Comment.Single
'\n' Text.Whitespace
'Traceback (most recent call last):\n' Generic.Traceback
' ' Text.Whitespace
'...' Comment
'\n' Text.Whitespace