diff --git a/test/comment/comment-in-parenthesis-statement.expected.js b/test/comment/comment-in-parenthesis-statement.expected.js new file mode 100644 index 00000000..84945649 --- /dev/null +++ b/test/comment/comment-in-parenthesis-statement.expected.js @@ -0,0 +1,5 @@ +function foo(a, b, c) { + // lorem + // ipsum + return a >= b && a <= c || a === 42 || a === 666; +} \ No newline at end of file diff --git a/test/comment/comment-in-parenthesis-statement.js b/test/comment/comment-in-parenthesis-statement.js new file mode 100644 index 00000000..a22fa0ea --- /dev/null +++ b/test/comment/comment-in-parenthesis-statement.js @@ -0,0 +1,9 @@ +function foo(a, b, c) { + return ( + (a >= b && a <= c) + + // lorem + // ipsum + || a === 42 || a === 666 + ); +} \ No newline at end of file