From 88a57e5452c79328a145f8a76e7c9ad32ad1ed94 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sat, 23 Jun 2018 12:08:48 -0500 Subject: Fix #2 - ctags not working --- nimgen.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nimgen.nim b/nimgen.nim index d804657..9535dc6 100644 --- a/nimgen.nim +++ b/nimgen.nim @@ -409,14 +409,14 @@ proc runPreprocess(file, ppflags, flags: string, inline: bool): string = proc runCtags(file: string): string = var - cmd = "ctags -o - --fields=+S+K --c-kinds=p --file-scope=no " & file + cmd = "ctags -o - --fields=+S+K --c-kinds=+p --file-scope=no " & file fps = execProc(cmd) fdata = "" for line in fps.splitLines(): var spl = line.split(re"\t") if spl.len() > 4: - if spl[0] != "main": + if spl[0] != "main" and spl[3] != "member": var fn = "" var match = spl[2].find(re"/\^(.*?)\(") if match.isSome(): -- cgit v1.2.3