diff --git a/tests/syntax_tests/data/printer/comments/docCommentAttributes.res b/tests/syntax_tests/data/printer/comments/docCommentAttributes.res new file mode 100644 index 0000000000..247d422aa0 --- /dev/null +++ b/tests/syntax_tests/data/printer/comments/docCommentAttributes.res @@ -0,0 +1,21 @@ +/** Doc comment */ +@a @b +external f: unit => unit = "f" + +/* Normal comment */ +@a @b +external f: unit => unit = "f" + +/** +Doc comment Doc comment Doc comment Doc comment Doc comment +Doc comment Doc comment Doc comment Doc comment Doc comment +*/ +@a @b +external f: unit => unit = "f" + +/* +Normal comment Normal comment Normal comment Normal comment Normal comment +Normal comment Normal comment Normal comment Normal comment Normal comment +*/ +@a @b +external f: unit => unit = "f" diff --git a/tests/syntax_tests/data/printer/comments/expected/docCommentAttributes.res.txt b/tests/syntax_tests/data/printer/comments/expected/docCommentAttributes.res.txt new file mode 100644 index 0000000000..247d422aa0 --- /dev/null +++ b/tests/syntax_tests/data/printer/comments/expected/docCommentAttributes.res.txt @@ -0,0 +1,21 @@ +/** Doc comment */ +@a @b +external f: unit => unit = "f" + +/* Normal comment */ +@a @b +external f: unit => unit = "f" + +/** +Doc comment Doc comment Doc comment Doc comment Doc comment +Doc comment Doc comment Doc comment Doc comment Doc comment +*/ +@a @b +external f: unit => unit = "f" + +/* +Normal comment Normal comment Normal comment Normal comment Normal comment +Normal comment Normal comment Normal comment Normal comment Normal comment +*/ +@a @b +external f: unit => unit = "f"