File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1498
1498
"blank" : true ,
1499
1499
"extensions" : [" rst" ]
1500
1500
},
1501
+ "Roc" : {
1502
+ "line_comment" : [" #" ],
1503
+ "quotes" : [
1504
+ [" \\\" " , " \\\" " ],
1505
+ [" '" , " '" ]
1506
+ ],
1507
+ "doc_quotes" : [[" \\\"\\\"\\\" " , " \\\"\\\"\\\" " ]],
1508
+ "extensions" : [" roc" ]
1509
+ },
1501
1510
"RON" : {
1502
1511
"name" : " Rusty Object Notation" ,
1503
1512
"line_comment" : [" //" ],
Original file line number Diff line number Diff line change
1
+ # 36 lines 18 code 10 comments 8 blanks
2
+ module [square]
3
+ # this is a comment
4
+ # this is another comment
5
+
6
+ a1 = 1
7
+ a2 = 3.14159 # pi
8
+
9
+ expect
10
+ # simple check
11
+ a1 == 1
12
+
13
+ expect
14
+ a2 |> Num . toStr == " 3.14159"
15
+
16
+ ## Compute the square
17
+ square = \x ->
18
+ s = x * x
19
+
20
+ # the line above is blank
21
+ s
22
+
23
+ expect square 3 == 9
24
+
25
+ ## """
26
+ ## this is not a multiline string,
27
+ ## it's a doc comment
28
+ ## """
29
+ multilineString =
30
+ " " "
31
+ # this line is not a comment, it's actually code
32
+
33
+ The line above is not blank, it's actually code
34
+ " " "
35
+
36
+ expect multilineString |> Str . toUtf8 |> List . first == Ok ' #'
You can’t perform that action at this time.
0 commit comments