Skip to content

Escaping the quote op doesn't seem to work #11151

@bluenote10

Description

@bluenote10

My interpretation of the quote docstring is that doubling up the quote op should escape it, i.e., I expected the following to work:

Example

import macros

static:
  let node = quote:
    ``+``(a, b)

Current Output

test.nim(5, 6) Error: identifier expected, but got '`'

Expected Output

Should compile.

Additional Information

$ nim -v
Nim Compiler Version 0.19.9 [Linux: amd64]
Compiled at 2019-04-13
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: f6ad071a46a2bec57db453343d8d8b75d3d16ac2
active boot switches: -d:release

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