From 89e89f34337ad4937b726270cb4a3eca42b6153a Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 30 Sep 2023 15:13:38 -0400 Subject: [PATCH] Fix comment tests --- corpus/comments.txt | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/corpus/comments.txt b/corpus/comments.txt index 37482eb..a997dd2 100644 --- a/corpus/comments.txt +++ b/corpus/comments.txt @@ -2,42 +2,33 @@ Full Line Comments ================== +not_a_comment # comment -#comment -# also a comment! --- (root (item - (comment)) - (item - (comment)) + (statement + (open_statement + (expression + (identifier))))) (item (comment))) - + ================== Partial Line Comments ================== -# comment # 1; -#comment# "one" +not_a_comment # comment --- -(source +(root (item - (comment)) + (statement + (open_statement + (expression + (identifier))))) (item - (statement - (closed_statement - (value - (integer))))) - - (item - (comment)) - (item - (statement - (open_statement - (value - (string)))))) + (comment)))