From 0a88c159c17d8d55ce6577497935aec4e8e44a1b Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Wed, 24 Sep 2025 14:03:49 +1200 Subject: [PATCH] tests/scripts: Also check hashes in quotes i.e. they should be part of the quote instead of starting a comment --- tests/scripts/space_in_name.ys | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/space_in_name.ys b/tests/scripts/space_in_name.ys index cc4f0e4e2..f6bbb8d46 100755 --- a/tests/scripts/space_in_name.ys +++ b/tests/scripts/space_in_name.ys @@ -12,3 +12,8 @@ read_test_args -arg "inner \"escaped quotes\"" "file name.v" "file name.ys" write_test_args -arg "inner \"escaped quotes\"" "file name.out" read_test_args -arg no_quotes plugin.cc write_test_args -arg no_quotes + +# hash in string? +test_args "this is \\ #not a comment" +test_args this is #a comment +test_args "#no comment"