Skip to content

Conversation

@tsnobip
Copy link
Member

@tsnobip tsnobip commented Dec 30, 2025

Add AST for string template literals.

Template literals in rescript are now translated to template literals in JS too.

This should enable better semantic highlighting inside string templates.

Template literals in rescript are now translated to template literals in JS too.
@tsnobip tsnobip marked this pull request as draft December 30, 2025 16:03
| Texp_construct _ | Texp_variant _ | Texp_record _ | Texp_setfield _
| Texp_while _ | Texp_pack _ | Texp_function _ | Texp_extension_constructor _
->
| Texp_template _ ->
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm really not sure about this, should it be static or dynamic?

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