aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-comments.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-okay-comments.nix')
-rw-r--r--test/testdata/eval-okay-comments.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-comments.nix b/test/testdata/eval-okay-comments.nix
new file mode 100644
index 0000000..cb2cce2
--- /dev/null
+++ b/test/testdata/eval-okay-comments.nix
@@ -0,0 +1,59 @@
1# A simple comment
2"a"+ # And another
3## A double comment
4"b"+ ## And another
5# Nested # comments #
6"c"+ # and # some # other #
7# An empty line, following here:
8
9"d"+ # and a comment not starting the line !
10
11"e"+
12/* multiline comments */
13"f" +
14/* multiline
15 comments,
16 on
17 multiple
18 lines
19*/
20"g" +
21# Small, tricky comments
22/**/ "h"+ /*/*/ "i"+ /***/ "j"+ /* /*/ "k"+ /*/* /*/ "l"+
23# Comments with an even number of ending '*' used to fail:
24"m"+
25/* */ /* **/ /* ***/ /* ****/ "n"+
26/* */ /** */ /*** */ /**** */ "o"+
27/** **/ /*** ***/ /**** ****/ "p"+
28/* * ** *** **** ***** */ "q"+
29# Random comments
30/* ***** ////// * / * / /* */ "r"+
31# Mixed comments
32/* # */
33"s"+
34# /* #
35"t"+
36# /* # */
37"u"+
38# /*********/
39"v"+
40## */*
41"w"+
42/*
43 * Multiline, decorated comments
44 * # This ain't a nest'd comm'nt
45 */
46"x"+
47''${/** with **/"y"
48 # real
49 /* comments
50 inside ! # */
51
52 # (and empty lines)
53
54}''+ /* And a multiline comment,
55 on the same line,
56 after some spaces
57*/ # followed by a one-line comment
58"z"
59/* EOF */