Autodoc framework now tracks script constants

Also, it's starting to attempt to describe more complex types
of initial values.
This commit is contained in:
Jon Siwek 2011-03-24 16:56:25 -05:00
parent 2490878656
commit 60a7dc6f55
6 changed files with 77 additions and 28 deletions

View file

@ -991,6 +991,9 @@ decl:
if ( $2->FindAttr(ATTR_REDEF) )
current_reST_doc->AddOption(
new BroDocObj($2, reST_doc_comments));
else
current_reST_doc->AddConstant(
new BroDocObj($2, reST_doc_comments));
}
| TOK_REDEF global_id opt_type init_class opt_init opt_attr ';'