From a60305fbf3897cd90680e693dd4c0db2334d85d4 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 5 May 2019 12:20:17 +0200 Subject: fixes macros.quote documentation; doubling of the escape operator never worked! --- lib/core/macros.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/core') diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 6a4c094d0..847e17c56 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -561,9 +561,7 @@ proc quote*(bl: typed, op = "``"): NimNode {.magic: "QuoteAst", noSideEffect.} ## Within the quoted AST, you are able to interpolate NimNode expressions ## 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 - ## for any interpolated expression. The original meaning of the interpolation - ## operator may be obtained by escaping it (by prefixing it with itself): - ## e.g. `@` is escaped as `@@`, `@@` is escaped as `@@@` and so on. + ## for any interpolated expression. ## ## Example: ## -- cgit 1.4.1-2-gfad0