summaryrefslogtreecommitdiffstats
path: root/tests/snippets/crystal/test_annotation.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/crystal/test_annotation.txt')
-rw-r--r--tests/snippets/crystal/test_annotation.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/snippets/crystal/test_annotation.txt b/tests/snippets/crystal/test_annotation.txt
new file mode 100644
index 0000000..b585fa1
--- /dev/null
+++ b/tests/snippets/crystal/test_annotation.txt
@@ -0,0 +1,16 @@
+---input---
+@[FOO::Bar::Baz(opt: "xx")]
+
+---tokens---
+'@[' Operator
+'FOO::Bar::Baz' Name.Decorator
+'(' Punctuation
+'opt' Literal.String.Symbol
+':' Punctuation
+' ' Text.Whitespace
+'"' Literal.String.Double
+'xx' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+']' Operator
+'\n' Text.Whitespace