summaryrefslogtreecommitdiffstats
path: root/tests/snippets/rust/test_attribute.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/rust/test_attribute.txt')
-rw-r--r--tests/snippets/rust/test_attribute.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/snippets/rust/test_attribute.txt b/tests/snippets/rust/test_attribute.txt
new file mode 100644
index 0000000..2c4a889
--- /dev/null
+++ b/tests/snippets/rust/test_attribute.txt
@@ -0,0 +1,12 @@
+---input---
+#[foo(bar = [baz, qux])]
+
+---tokens---
+'#[' Comment.Preproc
+'foo(bar = ' Comment.Preproc
+'[' Comment.Preproc
+'baz, qux' Comment.Preproc
+']' Comment.Preproc
+')' Comment.Preproc
+']' Comment.Preproc
+'\n' Text.Whitespace