update NOTICE
[nit.git] / tests / test_pretty / test_comments1.nit
1 # This file is part of NIT ( http://www.nitlanguage.org ).
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 # toplevel comment
17
18
19
20
21
22
23 # block
24 # block
25 # block
26
27
28
29
30
31 # Adoc1
32 class A # ending comments
33
34 super Object
35 # super Int
36
37
38 super String
39 # super Truc
40
41
42
43 # inclass comments
44 # comm
45 # ented
46 # blocks
47
48
49
50 # Adoc2
51 fun foo do
52
53 # comment
54
55
56
57 var truc
58
59 # comment
60 # comment
61
62
63
64 # comment
65
66
67 var chose
68
69 # comment
70 end
71
72 # comm
73 # ented
74 # blocks
75
76
77 fun bar do end
78
79
80 fun baz do end
81 # comment before end
82
83 end # ending comments
84
85 # comm
86 # ented
87 # blocks
88
89 abstract class B # comment
90 end
91
92 abstract class C
93 end
94
95 abstract class B # comment 2
96
97 end
98
99 abstract class C
100
101 end