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/vim/vimrc.output
Matthäus G. Chajdas 147b22face Improve whitespace handling in Python.
This triggers a new case in the HtmlFormatter, which emits an empty span
at the end of the line for a new line, as those are removed by the
split-by-parts code. This requires separate post-processing.

Doesn't fix all whitespace issues with Python either, but we're done to
360 failing examples with that, from previously >400.
2022-12-11 12:52:23 +01:00

131 lines
2.8 KiB
Text
Generated

'" A comment' Comment
'\n' Text.Whitespace
'\n' Text.Whitespace
':' Punctuation
'py' Keyword
' ' Text
'print' Name.Builtin
' ' Text
'"' Literal.String.Double
'py' Literal.String.Double
'"' Literal.String.Double
'\n' Text.Whitespace
':' Punctuation
':' Text
'pyt' Keyword
' ' Text
'print' Name.Builtin
' ' Text
"'" Literal.String.Single
'pyt' Literal.String.Single
"'" Literal.String.Single
'\n' Text.Whitespace
' ' Text
'pyth' Keyword
'\t' Text
'print' Name.Builtin
' ' Text
"'''" Literal.String.Single
'pyth' Literal.String.Single
"'''" Literal.String.Single
'\n' Text.Whitespace
' ' Text
':' Text
' ' Text
'pytho' Keyword
' ' Text
'print' Name.Builtin
' ' Text
'"' Literal.String.Double
'pytho' Literal.String.Double
'"' Literal.String.Double
'\n' Text.Whitespace
'python' Keyword
' ' Text
'print' Name.Builtin
' ' Text
'"""' Literal.String.Double
'python' Literal.String.Double
'"""' Literal.String.Double
'\n' Text.Whitespace
'\n' Text.Whitespace
' ' Text
':' Text
' ' Text
':' Text
' ' Text
'python' Keyword
'<<' Operator
'E OF' Text
'\n' Text.Whitespace
'print' Name.Builtin
' ' Text
'"""' Literal.String.Double
'my script' Literal.String.Double
'"""' Literal.String.Double
'\n' Text.Whitespace
'\n' Text.Whitespace
'def' Keyword
' ' Text
'MyFunc' Name.Function
'(' Punctuation
'str' Name.Builtin
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'""" My Function """' Literal.String.Doc
'\n' Text.Whitespace
' ' Text
'print' Name.Builtin
' ' Text
'str' Name.Builtin
'\n' Text.Whitespace
'E OF' Text
'\n' Text.Whitespace
'\n' Text.Whitespace
'let' Keyword
' ' Text
'py' Keyword
' ' Text
'=' Punctuation
' ' Text
'42' Literal.Number
'\n' Text.Whitespace
'echo' Text
' ' Text
'py' Keyword
'\n' Text.Whitespace
'\n' Text.Whitespace
'let' Keyword
' ' Text
'foo' Text
' ' Text
'=' Punctuation
' ' Text
'42' Literal.Number
'\n' Text.Whitespace
'echo' Text
' ' Text
'foo' Text
'\n' Text.Whitespace