Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support single line comments of the form // comment #2254

Merged
merged 2 commits into from
Nov 13, 2018

Conversation

IwanKaramazow
Copy link
Contributor

Implements parsing & printing of single line comments.

Example:

// single line comment
let x = 1;

The main logic is taken from #1800.
Extra test cases and support for whitespace interleaving have been implemented.

@IwanKaramazow IwanKaramazow force-pushed the SingleLineComments branch 2 times, most recently from 780b19e to d7ac64a Compare November 3, 2018 11:00
```reason
let x = {
  //
};
```

If the { }-sequence didn't break we would get parse error:

```reason
let x = { // };
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants