-
Notifications
You must be signed in to change notification settings - Fork 428
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
Conversation
inside a payload (attribute).
src/reason-parser/reason_lexer.mll
Outdated
@@ -919,6 +919,7 @@ and skip_sharp_bang = parse | |||
|
|||
let inject_es6_fun = function | |||
| tok :: acc -> | |||
print_endline "INJECTING"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to rebase lol
There was a problem hiding this 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
src/reason-parser/reason_lexer.mll
Outdated
@@ -919,6 +919,7 @@ and skip_sharp_bang = parse | |||
|
|||
let inject_es6_fun = function | |||
| tok :: acc -> | |||
print_endline "INJECTING"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove it 💃
One extra fix from reasonml/reason#1943. Helps bs.raw functions sugar
I think I ended up having a good use case for this one. Glad to see this fix! |
Fixes #1937
Fixes #1902