-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
[Syntax lookup] Add doc for explicit string
interpolation
#404
[Syntax lookup] Add doc for explicit string
interpolation
#404
Conversation
5872eee
to
009bac4
Compare
Probably a mistake from my side for defining it as a The older formats like j`` should not be used anymore anyways. |
@@ -0,0 +1,34 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File should be called language_string_interpolation.mdx
@@ -0,0 +1,34 @@ | |||
--- | |||
id: "explicit-string-interpolation" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id: "explicit-string-interpolation" | |
id: "string-interpolation" |
id: "explicit-string-interpolation" | ||
keywords: ["string", "interpolation"] | ||
name: "``" | ||
summary: "This is the explicit `string` interpolation syntax." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
summary: "This is the explicit `string` interpolation syntax." | |
summary: "This is the `string interpolation` syntax." |
category: "languageconstructs" | ||
--- | ||
|
||
An explicit `string` interpolation is composed of two backticks. It works like JavaScript's backtick string interpolation without the need to escape special characters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An explicit `string` interpolation is composed of two backticks. It works like JavaScript's backtick string interpolation without the need to escape special characters. | |
A `string interpolation` is composed of two backticks. It allows unicode characters and embeddable values and expressions with the special `${myValue}` syntax. |
That's so cool! Thanks. Small tip: If there are comments with suggestions, you should be able to just accept a change on Github's UI to automatically commit the diff. That's easier than trying to copy/paste the diff yourself :-) |
Another proposal for #162