summaryrefslogtreecommitdiffstats
path: root/tests/snippets/crystal/test_operator_methods.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/crystal/test_operator_methods.txt')
-rw-r--r--tests/snippets/crystal/test_operator_methods.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/snippets/crystal/test_operator_methods.txt b/tests/snippets/crystal/test_operator_methods.txt
new file mode 100644
index 0000000..084771f
--- /dev/null
+++ b/tests/snippets/crystal/test_operator_methods.txt
@@ -0,0 +1,18 @@
+---input---
+([] of Int32).[]?(5)
+
+---tokens---
+'(' Punctuation
+'[' Operator
+']' Operator
+' ' Text.Whitespace
+'of' Keyword
+' ' Text.Whitespace
+'Int32' Name
+')' Punctuation
+'.' Operator
+'[]?' Name.Operator
+'(' Punctuation
+'5' Literal.Number.Integer
+')' Punctuation
+'\n' Text.Whitespace