Skip to content

Renderer does not use accent quotes on keyword identifiers #20180

@deech

Description

@deech

What happened?

If you have a proc where one of the argument names is quoted, getImpl ignores the backquotes:

import macros

proc p(`let`:int) = discard

static:
  echo bindSym("p").getImpl.repr

generates at compile time:

proc p(let: int) =
  discard

It should generate:

proc p(`let`:int) = 
  discard

Nim Version

Nim Compiler Version 1.7.1 [Linux: amd64]
Compiled at 2022-06-15
Copyright (c) 2006-2022 by Andreas Rumpf

git hash: d33e112

Current Standard Output Logs

No response

Expected Standard Output Logs

No response

Possible Solution

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    AST RendererIssues related to the compiler turning AST back into Nim code as a string.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions