From 88429ebc851329ccb0429809949c9e2b9bc5b6d9 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sun, 31 Mar 2024 00:41:25 +0100 Subject: [PATCH] furhter extend tests --- tree_sitter_v/test/corpus/comments.txt | 31 +++++++++++++++++++------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/tree_sitter_v/test/corpus/comments.txt b/tree_sitter_v/test/corpus/comments.txt index 33df904b..0bc8f5e5 100644 --- a/tree_sitter_v/test/corpus/comments.txt +++ b/tree_sitter_v/test/corpus/comments.txt @@ -52,10 +52,14 @@ module foo ================================================================================ Multiline nested comment ================================================================================ -/********************************************************************** -* Comment -* /*** Nested ***/ -**********************************************************************/ +/* + /* Nested with ending asterisks **/ + + /** Nested with starting asterisks */ + + /* Nested */ +*/ +// comment /* comment */ module main /* Recuresively nested > Level 1 @@ -72,15 +76,24 @@ module main < */ foo := 'abc' -/* asdf */ +/********************************************************************** +* Comment +* /*** Nested ***/ +**********************************************************************/ -------------------------------------------------------------------------------- (source_file - (block_comment) + (block_comment + (block_comment) + (block_comment) + (block_comment)) (line_comment) (module_clause (identifier)) - (block_comment) + (block_comment + (block_comment + (block_comment + (block_comment)))) (simple_statement (var_declaration (expression_list @@ -88,4 +101,6 @@ foo := 'abc' (identifier))) (expression_list (literal - (interpreted_string_literal)))))) + (interpreted_string_literal))))) + (block_comment + (block_comment)))