Fix #2 - ctags not working

This commit is contained in:
Ganesh Viswanathan 2018-06-23 12:08:48 -05:00
commit 88a57e5452

View file

@ -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():