Skip to content

Commit

Permalink
Add support for single line comments of the form //
Browse files Browse the repository at this point in the history
  • Loading branch information
IwanKaramazow committed Nov 3, 2018
1 parent b209e19 commit 780b19e
Show file tree
Hide file tree
Showing 11 changed files with 1,530 additions and 6 deletions.
2 changes: 1 addition & 1 deletion formatTest/unit_tests/expected_output/basicStructures.re
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ let x = arr^[0] = 1;
*============================================================================
*/;

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

let something =
if (self.ext.logSuccess) {
Expand Down
1 change: 1 addition & 0 deletions formatTest/unit_tests/expected_output/emptyFileComment.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// file with just a single line comment
Loading

0 comments on commit 780b19e

Please sign in to comment.