Fix #2 - ctags not working
This commit is contained in:
parent
a8bcbf8e89
commit
88a57e5452
1 changed files with 2 additions and 2 deletions
|
|
@ -409,14 +409,14 @@ proc runPreprocess(file, ppflags, flags: string, inline: bool): string =
|
||||||
|
|
||||||
proc runCtags(file: string): string =
|
proc runCtags(file: string): string =
|
||||||
var
|
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)
|
fps = execProc(cmd)
|
||||||
fdata = ""
|
fdata = ""
|
||||||
|
|
||||||
for line in fps.splitLines():
|
for line in fps.splitLines():
|
||||||
var spl = line.split(re"\t")
|
var spl = line.split(re"\t")
|
||||||
if spl.len() > 4:
|
if spl.len() > 4:
|
||||||
if spl[0] != "main":
|
if spl[0] != "main" and spl[3] != "member":
|
||||||
var fn = ""
|
var fn = ""
|
||||||
var match = spl[2].find(re"/\^(.*?)\(")
|
var match = spl[2].find(re"/\^(.*?)\(")
|
||||||
if match.isSome():
|
if match.isSome():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue