Skip to content

Commit 2964625

Browse files
committed
Red: try config suggested in #63
1 parent c7c03da commit 2964625

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Diff for: lib/languages/red.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

Diff for: test/languages/red_test.rb

+7-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)