-
Notifications
You must be signed in to change notification settings - Fork 35
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
Coffeescript tagged template literals are broken #289
Labels
Comments
edemaine
added
bug
Something isn't working
coffeescript
CoffeeScript compatibility related
labels
Jan 25, 2023
Nice catch, and thanks for the report! This should be an easy fix. Note that |
edemaine
added a commit
that referenced
this issue
Jan 25, 2023
* `StringLiteral` is now always a string literal; no more `BasicStringLiteral` * `TemplateLiteral` now contains all CoffeeScript string interpolations (`"` and `"""` and even `'''` which transpiles to a template literal), though occasionally returns `StringLiteral` when there is no interpolation. * Fixes #289 * Important to check for CoffeeScript double-quoted strings via `TemplateLiteral` before regular double-quoted strings via `StringLiteral`.
STRd6
pushed a commit
that referenced
this issue
Jan 25, 2023
* Template literals as object keys * Refactor StringLiteral vs. TemplateLiteral * `StringLiteral` is now always a string literal; no more `BasicStringLiteral` * `TemplateLiteral` now contains all CoffeeScript string interpolations (`"` and `"""` and even `'''` which transpiles to a template literal), though occasionally returns `StringLiteral` when there is no interpolation. * Fixes #289 * Important to check for CoffeeScript double-quoted strings via `TemplateLiteral` before regular double-quoted strings via `StringLiteral`.
Great thanks!
… On 25 Jan 2023, at 23:48, Daniel X Moore ***@***.***> wrote:
Closed #289 <https://www.google.com/url?q=https://github.com/DanielXMoore/Civet/issues/289&source=gmail-imap&ust=1675295290000000&usg=AOvVaw3EFaGeuVGtaQNUMCcH9AkH> as completed via #294 <https://www.google.com/url?q=https://github.com/DanielXMoore/Civet/pull/294&source=gmail-imap&ust=1675295290000000&usg=AOvVaw3Be1cE-YgKCLBtyJbcMW7q>.
—
Reply to this email directly, view it on GitHub <https://www.google.com/url?q=https://github.com/DanielXMoore/Civet/issues/289%23event-8359749339&source=gmail-imap&ust=1675295290000000&usg=AOvVaw2yVEuSYfeYBlAenz5q_xMI>, or unsubscribe <https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/ABIZETVFSNDSI743M3Z5BATWUG3TPANCNFSM6AAAAAAUGQMZQM&source=gmail-imap&ust=1675295290000000&usg=AOvVaw1FX623eurfdpHwtJibjq-0>.
You are receiving this because you authored the thread.
|
Should be fixed in the 0.5.58 release! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there
I'm exploring porting a Coffeescript project to Civet, and discovered that CS tagged template literals are broken.
Example
Try this in the Civet Playground - it's the example used in the CS docs. The example breaks at 'upperCaseExpr"""' (note the no space between function call and multiline string).
FYI
FYI I wrote the CS2 support for tagged template literals, and interpolated strings.
Thanks for all your work on Civet. It's looking like a very promising successor to Coffeescript, assuming the migration path is sane.
The text was updated successfully, but these errors were encountered: