From e38f23a1bd6e0ee093655e1f241e524795f21fec Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 5 Oct 2026 23:57:38 +0200 Subject: Support single-line comments --- tools/tree-sitter/test/corpus/comments.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/tree-sitter/test/corpus/comments.txt (limited to 'tools/tree-sitter/test/corpus/comments.txt') 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)) -- cgit v1.2.3