| 1 | (* Group: a comment before const, type or var heads its group. |
| 2 | Doc's test of it. *) |
| 3 | module Group; |
| 4 | |
| 5 | (* Colours, one bit each. *) |
| 6 | const |
| 7 | Red* = 1; (* the first *) |
| 8 | Green* = 2; |
| 9 | Blue* = 4; (* the last *) |
| 10 | |
| 11 | (* A group of nothing exported, so no heading. *) |
| 12 | const hidden = 0; |
| 13 | |
| 14 | (* Where it is. *) |
| 15 | type |
| 16 | Point* = record x*, y*: INT; end; (* one place *) |
| 17 | |
| 18 | (* A comment that stands alone. *) |
| 19 | |
| 20 | var |
| 21 | count*: INT; |
| 22 | |
| 23 | proc main*; |
| 24 | begin |
| 25 | count := Red + hidden; |
| 26 | end; |
| 27 | |
| 28 | end Group. |