diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-06-23 12:08:48 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-06-23 12:08:48 -0500 |
| commit | 88a57e5452c79328a145f8a76e7c9ad32ad1ed94 (patch) | |
| tree | 35e915b72c9a5f8c9b5c9aebc470468b410858e0 | |
| parent | a8bcbf8e89460a460cfed6842b10eedcda9f50b2 (diff) | |
| download | nimgen-88a57e5452c79328a145f8a76e7c9ad32ad1ed94.tar.gz nimgen-88a57e5452c79328a145f8a76e7c9ad32ad1ed94.zip | |
Fix #2 - ctags not working
| -rw-r--r-- | nimgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(): |
