aboutsummaryrefslogtreecommitdiff
path: root/testdata/parse/comments.txt
blob: 0bd3e0411748b61eb1cabc5935c1d966d871bbb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Comment tests.
-- comment1.test --
--
-- comment1.out --
-- comment2.test --
-- Just a comment single line
-- comment2.out --
-- comment3.test --
    -- Just an indented comment single line
-- comment3.out --
-- comment4.test --

    -- Just a comment
    --
    -- a lone comment
  
-- comment4.out --
-- comment5.test --

    term
    -- Ending comment
  
-- comment5.out --
term
-- comment6.test --

    -- opening comment
    term
  
-- comment6.out --
term
-- comment7.test --

    term -- same-line comment
  
-- comment7.out --
term
-- comment8.test --

    foo
    -- implicit conjunction preceding comment
    bar
    baz
  
-- comment8.out --
conjunction
  conjunction
    foo
    bar
  baz
-- comment9.test --

    foo
    bar -- implicit conjunction inline comment
    baz
  
-- comment9.out --
conjunction
  conjunction
    foo
    bar
  baz
-- comment10.test --

    foo AND
    bar AND -- explicit conjunction inline comment
    baz
  
-- comment10.out --
conjunction
  conjunction
    foo
    bar
  baz
-- comment11.test --

    foo OR
    bar OR -- explicit disjunction inline comment
    baz
  
-- comment11.out --
disjunction
  disjunction
    foo
    bar
  baz
-- comment12.test --

    -- multi-line
    -- comment
    -- block
     (foo OR -- next one
       bar)
     bar
     --comment 1
     baz
     qux -- comment 2
     -- comment 3
-- comment12.out --
conjunction
  conjunction
    conjunction
      disjunction
        foo
        bar
      bar
    baz
  qux