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

Fix parsing & printing of es6 function syntax inside attribrutes #1943

Merged
merged 2 commits into from
May 18, 2018

Conversation

IwanKaramazow
Copy link
Contributor

Fixes #1937
Fixes #1902

@@ -919,6 +919,7 @@ and skip_sharp_bang = parse

let inject_es6_fun = function
| tok :: acc ->
print_endline "INJECTING";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forgot to rebase lol

Copy link
Contributor

@hcarty hcarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A debug print may have made it in

@@ -919,6 +919,7 @@ and skip_sharp_bang = parse

let inject_es6_fun = function
| tok :: acc ->
print_endline "INJECTING";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to remove it 💃

@chenglou chenglou merged commit 3629912 into reasonml:master May 18, 2018
chenglou added a commit to chenglou/rescript-compiler that referenced this pull request May 18, 2018
One extra fix from reasonml/reason#1943. Helps
bs.raw functions sugar
@jordwalke
Copy link
Member

I think I ended up having a good use case for this one. Glad to see this fix!

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.

5 participants