File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 1
1
!e
2
2
;\p
3
- Red [\p -->>]\pj
4
- Red +[\p -->>]\pj
5
- comment [\p -->>]\pj
6
- comment +[\p -->>]\pj
7
- comment {\p -->>}\pj
8
- comment +{\p -->>}\pj
3
+ Red [\pj -->>]\pj
4
+ Red +[\pj -->>]\pj
5
+ comment [\pj -->>]\pj
6
+ comment +[\pj -->>]\pj
7
+ comment {\pj -->>}\pj
8
+ comment +{\pj -->>}\pj
Original file line number Diff line number Diff line change @@ -5,16 +5,20 @@ module Languages
5
5
class RedTest < Minitest ::Test
6
6
def test_full_example
7
7
code = <<~CODE
8
- Red [] ; a comment
8
+ Red [a-header ] ; a comment
9
9
10
10
; single line comment
11
11
x: 1 ; line comment 1
12
+ y: 11
12
13
x: 2 ;-- line comment 2
13
14
x: 3 ;@@ line comment 3
14
15
15
16
comment ['this
16
17
'is 'multiline
17
18
'comment]
19
+
20
+ print "no comments!"
21
+
18
22
comment {and this
19
23
as well}
20
24
@@ -26,9 +30,13 @@ def test_full_example
26
30
CODE
27
31
28
32
expected = <<~CODE
29
- x: 1
30
- x: 2
31
- x: 3
33
+ x: 1
34
+ y: 11
35
+ x: 2
36
+ x: 3
37
+
38
+ print "no comments!"
39
+
32
40
function add100 [x [integer!]] [
33
41
" this should not count as comment "
34
42
{ and neither
You can’t perform that action at this time.
0 commit comments