aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-06-23 12:08:48 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-06-23 12:08:48 -0500
commit88a57e5452c79328a145f8a76e7c9ad32ad1ed94 (patch)
tree35e915b72c9a5f8c9b5c9aebc470468b410858e0
parenta8bcbf8e89460a460cfed6842b10eedcda9f50b2 (diff)
downloadnimgen-88a57e5452c79328a145f8a76e7c9ad32ad1ed94.tar.gz
nimgen-88a57e5452c79328a145f8a76e7c9ad32ad1ed94.zip
Fix #2 - ctags not working
-rw-r--r--nimgen.nim4
1 files 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():