Skip to content

Commit 780b19e

Browse files
committed
Add support for single line comments of the form //
1 parent b209e19 commit 780b19e

File tree

11 files changed

+1530
-6
lines changed

11 files changed

+1530
-6
lines changed

formatTest/unit_tests/expected_output/basicStructures.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ let x = arr^[0] = 1;
146146
*============================================================================
147147
*/;
148148

149-
let (/\/) = (+); /* // is not a comment */
149+
let (/++) = (+); /* // indicates the start of a comment, not an infix op */
150150

151151
let something =
152152
if (self.ext.logSuccess) {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// file with just a single line comment

0 commit comments

Comments
 (0)