fixes macros.quote documentation; doubling of the escape operator never worked!
This commit is contained in:
parent
4fd79f5b47
commit
a60305fbf3
1 changed files with 1 additions and 3 deletions
|
|
@ -561,9 +561,7 @@ proc quote*(bl: typed, op = "``"): NimNode {.magic: "QuoteAst", noSideEffect.}
|
||||||
## Within the quoted AST, you are able to interpolate NimNode expressions
|
## Within the quoted AST, you are able to interpolate NimNode expressions
|
||||||
## from the surrounding scope. If no operator is given, quoting is done using
|
## from the surrounding scope. If no operator is given, quoting is done using
|
||||||
## backticks. Otherwise, the given operator must be used as a prefix operator
|
## backticks. Otherwise, the given operator must be used as a prefix operator
|
||||||
## for any interpolated expression. The original meaning of the interpolation
|
## for any interpolated expression.
|
||||||
## operator may be obtained by escaping it (by prefixing it with itself):
|
|
||||||
## e.g. `@` is escaped as `@@`, `@@` is escaped as `@@@` and so on.
|
|
||||||
##
|
##
|
||||||
## Example:
|
## Example:
|
||||||
##
|
##
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue