From 93c24fe1c5ca998f112cf77834b9bb02c4fc47c0 Mon Sep 17 00:00:00 2001 From: Jake Leahy Date: Sun, 20 Oct 2024 01:39:15 +1100 Subject: [PATCH] Fix quoted idents in ctags (#24317) Running `ctags` on files with quoted symbols (e.g. `$`) would list \` instead of the full ident. Issue was the result getting reassigned at the end to a \` instead of appending --- compiler/docgen.nim | 2 +- tests/tools/tctags.nim | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 tests/tools/tctags.nim diff --git a/compiler/docgen.nim b/compiler/docgen.nim index d457528217..2b25ded7df 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -830,7 +830,7 @@ proc getName(n: PNode): string = of nkAccQuoted: result = "`" for i in 0..