-
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 bug: single quoted string with tagged template literal #311
Comments
Use of tripped quoted string works fine:
I believe the underlying issue is that Coffeescript is converting both the single-quoted string and triple-quoted string to a template literal. Civet seems to convert single-quoted to a double-quoted string, and triple-quoted to a template literal. And a quick check with the Chrome dev tools console shows that the Javascript tagged template literal function only wants a template literal, not a single or double quoted string (grabbing example from MDN):
|
Indeed, We should be able to fix this, but it will require some more tweaking to separation between string literals and template literals previously considered in #294. Meanwhile, please use |
@edemaine Do you see any downside to allowing all types of strings to be template literals as a default? |
No, I don't think so, which is why CoffeeScript made this decision. So I was thinking of just adding |
You can. I'm looking into |
Coffeescript bug (parse error)
gives
Playground links
Coffeescript link
Civet link
The text was updated successfully, but these errors were encountered: