Commit 07f06f1
Support single line comments of the form
* Add support for single line comments of the form //
* Fix edge case where // inside a sequence wrapped in braces didn't break.
```reason
let x = {
//
};
```
If the { }-sequence didn't break we would get parse error:
```reason
let x = { // };
```// comment (#2254)1 parent c16a926 commit 07f06f1
File tree
12 files changed
+1558
-7
lines changed- formatTest/unit_tests
- expected_output
- input
- src/reason-parser
12 files changed
+1558
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments