forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve conversion of quoted strings from Reason. (rescript-lang#238)
* Improve conversion of quoted strings from Reason. Fixes rescript-lang/syntax#237 The conversion from Reason to ReScript naively picks up `//` as comments inside quoted strings.. input: ```reason let x = {j|https://www.apple.com|j}; let x = {|https://www.apple.com|}; let x = {js|https://www.apple.com|js}; ``` output: ```rescript let x = j`https://www.apple.com` //www.apple.com|j}; let x = `https://www.apple.com` //www.apple.com|}; let x = `https://www.apple.com` //www.apple.com|js}; ``` This patch fixes this behaviour and doesn't produce any extra comments * Update CHANGELOG Co-authored-by: Iwan <[email protected]>
- Loading branch information
1 parent
4b97d08
commit 80a5df1
Showing
8 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters