summaryrefslogtreecommitdiff
path: root/tests/examplefiles/html
diff options
context:
space:
mode:
authorSebastian Engel <dev@sebastianengel.eu>2022-01-01 20:23:31 +0100
committerSebastian Engel <dev@sebastianengel.eu>2022-01-06 18:21:32 +0100
commit0660dfd627879f46e5077417641bf646aa298111 (patch)
tree1d5a3ae844085672f6f2f1d81c7c7ac8801723f2 /tests/examplefiles/html
parent88efc38bed60006222b3f1c11aca33fc2c07af18 (diff)
downloadpygments-git-0660dfd627879f46e5077417641bf646aa298111.tar.gz
Modernize Whitespace token in lexer javascript
Diffstat (limited to 'tests/examplefiles/html')
-rw-r--r--tests/examplefiles/html/example.xhtml.output55
-rw-r--r--tests/examplefiles/html/test.html.output18
2 files changed, 35 insertions, 38 deletions
diff --git a/tests/examplefiles/html/example.xhtml.output b/tests/examplefiles/html/example.xhtml.output
index 90979e44..b3f22cd5 100644
--- a/tests/examplefiles/html/example.xhtml.output
+++ b/tests/examplefiles/html/example.xhtml.output
@@ -18,76 +18,73 @@
'"text/javascript"' Literal.String
'>' Punctuation
'' Text
-'\n ' Text
-'// <!--\n' Comment.Single
-
-' ' Text
+'\n ' Text.Whitespace
+'// <!--' Comment.Single
+'\n ' Text.Whitespace
'function' Keyword.Declaration
-' ' Text
+' ' Text.Whitespace
'toggleVisible' Name.Other
'(' Punctuation
'element' Name.Other
')' Punctuation
-' ' Text
+' ' Text.Whitespace
'{' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'if' Keyword
-' ' Text
+' ' Text.Whitespace
'(' Punctuation
'element' Name.Other
'.' Punctuation
'style' Name.Other
'.' Punctuation
'display' Name.Other
-' ' Text
+' ' Text.Whitespace
'==' Operator
-' ' Text
+' ' Text.Whitespace
"'block'" Literal.String.Single
')' Punctuation
-' ' Text
+' ' Text.Whitespace
'{' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'element' Name.Other
'.' Punctuation
'style' Name.Other
'.' Punctuation
'display' Name.Other
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
"'none'" Literal.String.Single
';' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'}' Punctuation
-' ' Text
+' ' Text.Whitespace
'else' Keyword
-' ' Text
+' ' Text.Whitespace
'{' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'element' Name.Other
'.' Punctuation
'style' Name.Other
'.' Punctuation
'display' Name.Other
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
"'block'" Literal.String.Single
';' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'}' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'return' Keyword
-' ' Text
+' ' Text.Whitespace
'false' Keyword.Constant
';' Punctuation
-' \n ' Text
+' \n ' Text.Whitespace
'}' Punctuation
-' \n ' Text
-'// -->\n' Comment.Single
-
-'' Text
-' ' Text
+' \n ' Text.Whitespace
+'// -->' Comment.Single
+'\n ' Text.Whitespace
'<' Punctuation
'/' Punctuation
'script' Name.Tag
diff --git a/tests/examplefiles/html/test.html.output b/tests/examplefiles/html/test.html.output
index 03e70f60..aafb1fdb 100644
--- a/tests/examplefiles/html/test.html.output
+++ b/tests/examplefiles/html/test.html.output
@@ -12,23 +12,23 @@
'script' Name.Tag
'>' Punctuation
'' Text
-'\n ' Text
+'\n ' Text.Whitespace
'function' Keyword.Declaration
-' ' Text
+' ' Text.Whitespace
'initCodeBlock' Name.Other
'(' Punctuation
'id' Name.Other
')' Punctuation
';' Punctuation
-' ' Text
+' ' Text.Whitespace
'{' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'var' Keyword.Declaration
-' ' Text
+' ' Text.Whitespace
'el' Name.Other
-' ' Text
+' ' Text.Whitespace
'=' Operator
-' ' Text
+' ' Text.Whitespace
'document' Name.Builtin
'.' Punctuation
'getElementById' Name.Other
@@ -36,9 +36,9 @@
'id' Name.Other
')' Punctuation
';' Punctuation
-'\n ' Text
+'\n ' Text.Whitespace
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'<' Punctuation
'/' Punctuation