diff options
author | Maxime Kjaer <maxime.kjaer@gmail.com> | 2021-03-01 11:39:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 11:39:20 +0100 |
commit | 37113b095ee9a445187a8478589010347b7a9687 (patch) | |
tree | 29538f8314345a1a4bcb62406dd58b336107f0a2 /tests/examplefiles/scala/inheritance.scala.output | |
parent | c1a0d82acbe6fa026a1f6843fee00cc1df626549 (diff) | |
download | pygments-git-37113b095ee9a445187a8478589010347b7a9687.tar.gz |
Rewrite Scala lexer for Scala 3 (#1694)
Diffstat (limited to 'tests/examplefiles/scala/inheritance.scala.output')
-rw-r--r-- | tests/examplefiles/scala/inheritance.scala.output | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/tests/examplefiles/scala/inheritance.scala.output b/tests/examplefiles/scala/inheritance.scala.output new file mode 100644 index 00000000..c55eec64 --- /dev/null +++ b/tests/examplefiles/scala/inheritance.scala.output @@ -0,0 +1,104 @@ +'// Extends\n' Comment.Single + +'trait' Keyword +' ' Text +'A' Name.Class +' ' Text +'extends' Keyword +' ' Text +'B' Name.Class +'\n' Text + +'trait' Keyword +' ' Text +'A' Name.Class +' ' Text +'extends' Keyword +' ' Text +'(' Punctuation +'B' Name.Class +' ' Text +'=>' Operator +' ' Text +'B' Name.Class +')' Punctuation +'{' Punctuation +'}' Punctuation +'\n' Text + +'trait' Keyword +' ' Text +'Color' Name.Class +'\n' Text + +'object' Keyword +' ' Text +'Red' Name.Class +' ' Text +'extends' Keyword +' ' Text +'Color' Name.Class +'\n\n' Text + +'// Derives\n' Comment.Single + +'enum' Keyword +' ' Text +'Tree' Name.Class +'[' Punctuation +'T' Name.Class +']' Punctuation +' ' Text +'derives' Keyword +' ' Text +'Eq' Name.Class +',' Punctuation +' ' Text +'Ordering' Name.Class +',' Punctuation +' ' Text +'Show' Name.Class +' ' Text +'{' Punctuation +'\n ' Text +'case' Keyword +' ' Text +'Branch' Name.Class +'[' Punctuation +'T' Name.Class +']' Punctuation +'(' Punctuation +'left' Name +':' Punctuation +' ' Text +'Tree' Name.Class +'[' Punctuation +'T' Name.Class +']' Punctuation +',' Punctuation +' ' Text +'right' Name +':' Punctuation +' ' Text +'Tree' Name.Class +'[' Punctuation +'T' Name.Class +']' Punctuation +')' Punctuation +'\n ' Text +'case' Keyword +' ' Text +'Leaf' Name.Class +'[' Punctuation +'T' Name.Class +']' Punctuation +'(' Punctuation +'elem' Name +':' Punctuation +' ' Text +'T' Name.Class +')' Punctuation +'\n' Text + +'}' Punctuation +'\n' Text |