summaryrefslogtreecommitdiff
path: root/tests/examplefiles/vim
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-12-11 12:52:23 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-12-11 12:52:23 +0100
commit147b22face65617514ccfa8512c6b097b07cad4c (patch)
tree56a06e1627d9e159f84becb4664d0ec46788a8f5 /tests/examplefiles/vim
parent956518d6d6b62e755f8a3869c5cb143a243fdc4d (diff)
downloadpygments-git-147b22face65617514ccfa8512c6b097b07cad4c.tar.gz
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.
Diffstat (limited to 'tests/examplefiles/vim')
-rw-r--r--tests/examplefiles/vim/vimrc.output14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/examplefiles/vim/vimrc.output b/tests/examplefiles/vim/vimrc.output
index 9c436ee9..e295489b 100644
--- a/tests/examplefiles/vim/vimrc.output
+++ b/tests/examplefiles/vim/vimrc.output
@@ -65,16 +65,16 @@
'python' Keyword
'<<' Operator
'E OF' Text
-'\n' Text
+'\n' Text.Whitespace
'print' Name.Builtin
' ' Text
'"""' Literal.String.Double
'my script' Literal.String.Double
'"""' Literal.String.Double
-'\n' Text
+'\n' Text.Whitespace
-'\n' Text
+'\n' Text.Whitespace
'def' Keyword
' ' Text
@@ -83,17 +83,17 @@
'str' Name.Builtin
')' Punctuation
':' Punctuation
-'\n' Text
+'\n' Text.Whitespace
-' ' Text
+' ' Text.Whitespace
'""" My Function """' Literal.String.Doc
-'\n' Text
+'\n' Text.Whitespace
' ' Text
'print' Name.Builtin
' ' Text
'str' Name.Builtin
-'\n' Text
+'\n' Text.Whitespace
'E OF' Text
'\n' Text.Whitespace