File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11!e
22;\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
55 class RedTest < Minitest ::Test
66 def test_full_example
77 code = <<~CODE
8- Red [] ; a comment
8+ Red [a-header ] ; a comment
99
1010 ; single line comment
1111 x: 1 ; line comment 1
12+ y: 11
1213 x: 2 ;-- line comment 2
1314 x: 3 ;@@ line comment 3
1415
1516 comment ['this
1617 'is 'multiline
1718 'comment]
19+
20+ print "no comments!"
21+
1822 comment {and this
1923 as well}
2024
@@ -27,8 +31,10 @@ def test_full_example
2731
2832 expected = <<~CODE
2933 x: 1
34+ y: 11
3035 x: 2
3136 x: 3
37+ print "no comments!"
3238 function add100 [x [integer!]] [
3339 " this should not count as comment "
3440 { and neither
You can’t perform that action at this time.
0 commit comments