aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/comments.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tree-sitter/test/corpus/comments.txt')
-rw-r--r--tools/tree-sitter/test/corpus/comments.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/tree-sitter/test/corpus/comments.txt b/tools/tree-sitter/test/corpus/comments.txt
new file mode 100644
index 0000000..8c933ea
--- /dev/null
+++ b/tools/tree-sitter/test/corpus/comments.txt
@@ -0,0 +1,25 @@
+==================
+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
+does not have to be Elna: proc 1 2 3 "unterminated
+
+---
+
+(source_file
+ (module_declaration
+ (comment)
+ (comment))
+ (trailing_content))