summaryrefslogtreecommitdiff
path: root/tests/snippets/java
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2021-09-29 13:22:50 -0500
committerGitHub <noreply@github.com>2021-09-29 20:22:50 +0200
commit25429f79528e9f7df67fa29c2ebbd914705a90ee (patch)
treea45d1d11a6ec15163e85c3a054e6d2116670c5b4 /tests/snippets/java
parent0f6672ebcd7c1d6a96eee7324142d3a84e2761d4 (diff)
downloadpygments-git-25429f79528e9f7df67fa29c2ebbd914705a90ee.tar.gz
Add new Java syntax: sealed classes and record types. (#1902)
Diffstat (limited to 'tests/snippets/java')
-rw-r--r--tests/snippets/java/test_record.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/snippets/java/test_record.txt b/tests/snippets/java/test_record.txt
new file mode 100644
index 00000000..48ca6c02
--- /dev/null
+++ b/tests/snippets/java/test_record.txt
@@ -0,0 +1,15 @@
+---input---
+public record RecordTest() {}
+
+---tokens---
+'public' Keyword.Declaration
+' ' Text
+'record' Keyword.Declaration
+' ' Text
+'RecordTest' Name.Function
+'(' Punctuation
+')' Punctuation
+' ' Text
+'{' Punctuation
+'}' Punctuation
+'\n' Text