File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
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
@@ -27,8 +31,10 @@ def test_full_example
27
31
28
32
expected = <<~CODE
29
33
x: 1
34
+ y: 11
30
35
x: 2
31
36
x: 3
37
+ print "no comments!"
32
38
function add100 [x [integer!]] [
33
39
" this should not count as comment "
34
40
{ and neither
You can’t perform that action at this time.
0 commit comments