Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 19, 2018. It is now read-only.
/discussPublic archive
This repository was archived by the owner on Feb 19, 2018. It is now read-only.

CS2 Discussion: Features: Allow backticks to be used inside embedded Javascript blocks #42

Closed
@greghuc

Description

@greghuc

As discussedhere, I'm splitting out a separate issue for allowing backticks to be used inside embedded Javascript blocks.

This is a straight-up bug fix for an issue that has been around since2011, but has become more important since the introduction of ES6 template literals.

ES6 template literals cannot be used in an embedded Javascript block, since the new syntax uses backticks. Backticks are already used by Coffeescript to define the start and end of the JS block. This example blows up:

`3 + 2 = ${3 + 2}`

The proposed fix is for Coffeescript to allow embedded Javascript blocks to be delineated with 3-backticks markdown-style, andnot escape backticks in the Javascript block. E.g.:

    ```    `3 + 2 = ${3 + 2}`    ```

Reasoning:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp