aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus/comments.txt
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-05 23:57:38 +0200
committerEugen Wissner <belka@caraus.de>2026-10-05 23:57:59 +0200
commite38f23a1bd6e0ee093655e1f241e524795f21fec (patch)
tree5a5dd8223f6a01dd4ea2ec37a399b76a7519b6e3 /tools/tree-sitter/test/corpus/comments.txt
parenta9f6cfb6a8b6d38057faca067c015da1f72cf62d (diff)
downloadelna-e38f23a1bd6e0ee093655e1f241e524795f21fec.tar.gz
Support single-line comments
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))