From d292fce9f23f394c381792581dcb22c8adabaef7 Mon Sep 17 00:00:00 2001 From: Antonio Cervone Date: Mon, 30 Nov 2015 12:42:24 +0100 Subject: [PATCH] improve comment test. test also for nested and mixed comments. whitespaces/newlines are already intermixed between comments. --- test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.cpp b/test.cpp index 26fd5b8..87f27ed 100644 --- a/test.cpp +++ b/test.cpp @@ -59,7 +59,7 @@ int main(int argc, char **argv) { } const string comment_test = R"({ - // comment + // comment /* with nested comment */ "a": 1, // comment // continued @@ -67,6 +67,7 @@ int main(int argc, char **argv) { /* multi line comment */ + // and single-line comment "c": [1, 2, 3] })";