aboutsummaryrefslogtreecommitdiff
path: root/tools/tree-sitter/test/corpus
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
parenta9f6cfb6a8b6d38057faca067c015da1f72cf62d (diff)
downloadelna-e38f23a1bd6e0ee093655e1f241e524795f21fec.tar.gz
Support single-line comments
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))