aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tree-sitter/test/corpus')
-rw-r--r--tools/tree-sitter/test/corpus/comments.txt (renamed from tools/tree-sitter/test/corpus/trailing_text.txt)13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/tree-sitter/test/corpus/trailing_text.txt b/tools/tree-sitter/test/corpus/comments.txt
index bb39c86..8c933ea 100644
--- a/tools/tree-sitter/test/corpus/trailing_text.txt
+++ b/tools/tree-sitter/test/corpus/comments.txt
@@ -1,9 +1,16 @@
==================
-trailing_text
+comments
==================
module
+(*
+ This is multi-line
+ dockblock
+*)
+
+-- This is a one-line comment.
+
end.
Everything after the module terminator is ignored and is never scanned, so it
@@ -12,5 +19,7 @@ does not have to be Elna: proc 1 2 3 "unterminated
---
(source_file
- (module_declaration)
+ (module_declaration
+ (comment)
+ (comment))
(trailing_content))