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

feat: support (OCaml syntax) expressions in {j| .. |j} interpolation #1025

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anmonteiro
Copy link
Member

still not sure if this is a good idea because it won't be able to support Reason syntax. Feedback welcome

Copy link
Member

@jchavarri jchavarri left a comment

Choose a reason for hiding this comment

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

I think this is a cool idea!

Re: reason syntax, would it be possible to support it if the Reason parser was updated to process this kind of nodes first so they get translated?

@@ -167,15 +167,6 @@ let suites =
] );
( __LOC__ >:: fun _ ->
{|$x)|} ==* [ (0, 0, 0, 2, var, "x"); (0, 2, 0, 3, String, ")") ] );
( __LOC__ >:: fun _ ->
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if these tests can be left, but updating them to the new behavior?

Copy link
Member Author

Choose a reason for hiding this comment

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

The new behavior is different and it's covered elsewhere, in the blackbox-tests. I think these are actually unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants