Forgot to output struct declarations in ctags

This commit is contained in:
Hackerpilot 2013-07-31 23:03:48 +00:00
parent ae0299c38d
commit 1113da05d8
1 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,15 @@ class CTagsPrinter : ASTVisitor
context = c;
}
override void visit(StructDeclaration dec)
{
tagLines ~= "%s\t%s\t%d;\"\ts%s\n".format(dec.name.value, fileName, dec.name.line, context);
auto c = context;
context = "\tstruct:" ~ dec.name.value;
dec.accept(this);
context = c;
}
override void visit(InterfaceDeclaration dec)
{
tagLines ~= "%s\t%s\t%d;\"\ti%s\n".format(dec.name.value, fileName, dec.name.line, context);