summaryrefslogtreecommitdiff
path: root/tests/examplefiles/scala
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2022-12-04 16:03:26 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2022-12-04 16:06:01 +0100
commit8251c40a8b42fd1e3b1d90d30fa9afcff19c1482 (patch)
treeafc63c8aa010a904a3680c0c6b053f19142ec491 /tests/examplefiles/scala
parent6abce335cc0dde84567f848f55a1f1e5b69ed98e (diff)
downloadpygments-git-8251c40a8b42fd1e3b1d90d30fa9afcff19c1482.tar.gz
Improve whitespace handling in CMake/RegexLexer.
Diffstat (limited to 'tests/examplefiles/scala')
-rw-r--r--tests/examplefiles/scala/exports.scala.output16
-rw-r--r--tests/examplefiles/scala/imports.scala.output26
-rw-r--r--tests/examplefiles/scala/package.scala.output4
3 files changed, 23 insertions, 23 deletions
diff --git a/tests/examplefiles/scala/exports.scala.output b/tests/examplefiles/scala/exports.scala.output
index 0968bf29..69571657 100644
--- a/tests/examplefiles/scala/exports.scala.output
+++ b/tests/examplefiles/scala/exports.scala.output
@@ -8,7 +8,7 @@
'a' Name.Namespace
'.' Punctuation
'_' Name
-'\n' Text
+'\n' Text.Whitespace
'export' Keyword
' ' Text.Whitespace
@@ -42,7 +42,7 @@
' ' Text.Whitespace
'y' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'export' Keyword
' ' Text.Whitespace
@@ -55,7 +55,7 @@
' ' Text.Whitespace
'y' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'export' Keyword
' ' Text.Whitespace
@@ -119,7 +119,7 @@
'a' Name.Namespace
'.' Punctuation
'_' Name
-'\n' Text
+'\n' Text.Whitespace
'export' Keyword
' ' Text.Whitespace
@@ -150,7 +150,7 @@
' ' Text.Whitespace
'y' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'export' Keyword
' ' Text.Whitespace
@@ -165,7 +165,7 @@
' ' Text.Whitespace
'`test-name`' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
' ' Text.Whitespace
'export' Keyword
@@ -173,7 +173,7 @@
'scanUnit' Name.Namespace
'.' Punctuation
'scan' Name
-'\n' Text
+'\n' Text.Whitespace
' ' Text.Whitespace
'export' Keyword
@@ -190,4 +190,4 @@
' ' Text.Whitespace
'_' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/examplefiles/scala/imports.scala.output b/tests/examplefiles/scala/imports.scala.output
index 631d0d0e..76dc5635 100644
--- a/tests/examplefiles/scala/imports.scala.output
+++ b/tests/examplefiles/scala/imports.scala.output
@@ -43,14 +43,14 @@
' ' Text.Whitespace
'`test-name`' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
'a' Name.Namespace
'.' Punctuation
'given' Keyword
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -61,7 +61,7 @@
' ' Text.Whitespace
'a' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -73,21 +73,21 @@
' ' Text.Whitespace
'y' Name
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
'a' Name.Namespace
'.' Punctuation
'_' Name
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
'a' Name.Namespace
'.' Punctuation
'x' Name
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -98,7 +98,7 @@
'y' Name.Namespace
'.' Punctuation
'z' Name
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -115,7 +115,7 @@
' ' Text.Whitespace
'FileNotFoundException' Name.Class
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -124,7 +124,7 @@
'io' Name.Namespace
'.' Punctuation
'File' Name.Class
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -140,7 +140,7 @@
'Int' Name.Class
']' Punctuation
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
@@ -156,16 +156,16 @@
'?' Name
']' Punctuation
'}' Punctuation
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
'a' Name.Namespace
'.' Punctuation
'givenSomething' Name
-'\n' Text
+'\n' Text.Whitespace
'import' Keyword
' ' Text.Whitespace
'givenPackage' Name
-'\n' Text
+'\n' Text.Whitespace
diff --git a/tests/examplefiles/scala/package.scala.output b/tests/examplefiles/scala/package.scala.output
index 40acee66..e021db58 100644
--- a/tests/examplefiles/scala/package.scala.output
+++ b/tests/examplefiles/scala/package.scala.output
@@ -5,11 +5,11 @@
'package' Keyword
' ' Text.Whitespace
'com' Name
-'\n' Text
+'\n' Text.Whitespace
'package' Keyword
' ' Text.Whitespace
'com' Name.Namespace
'.' Punctuation
'example' Name
-'\n' Text
+'\n' Text.Whitespace