summaryrefslogtreecommitdiffstats
path: root/tests/snippets/java/test_enhanced_for.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/java/test_enhanced_for.txt')
-rw-r--r--tests/snippets/java/test_enhanced_for.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/snippets/java/test_enhanced_for.txt b/tests/snippets/java/test_enhanced_for.txt
new file mode 100644
index 0000000..d2a8091
--- /dev/null
+++ b/tests/snippets/java/test_enhanced_for.txt
@@ -0,0 +1,22 @@
+---input---
+label:
+for(String var2: var1) {}
+
+---tokens---
+'label' Name.Label
+':' Punctuation
+'\n' Text.Whitespace
+
+'for' Keyword
+'(' Punctuation
+'String' Name
+' ' Text.Whitespace
+'var2' Name
+':' Punctuation
+' ' Text.Whitespace
+'var1' Name
+')' Punctuation
+' ' Text.Whitespace
+'{' Punctuation
+'}' Punctuation
+'\n' Text.Whitespace