mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix reST markup generated for record redefs.
They should have been using reST roles to xref the original record type instead of a reST directive to declare a new type.
This commit is contained in:
parent
d69c3edf21
commit
73a18714b3
2 changed files with 5 additions and 3 deletions
|
@ -1092,8 +1092,10 @@ decl:
|
||||||
new RecordType(fake_type_decl_list);
|
new RecordType(fake_type_decl_list);
|
||||||
ID* fake = create_dummy_id($3, fake_record);
|
ID* fake = create_dummy_id($3, fake_record);
|
||||||
fake_type_decl_list = 0;
|
fake_type_decl_list = 0;
|
||||||
current_reST_doc->AddRedef(
|
BroDocObj* o =
|
||||||
new BroDocObj(fake, reST_doc_comments, true));
|
new BroDocObj(fake, reST_doc_comments, true);
|
||||||
|
o->SetRole(true);
|
||||||
|
current_reST_doc->AddRedef(o);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -279,7 +279,7 @@ Redefinitions
|
||||||
|
|
||||||
document the "SimpleEnum" redef here
|
document the "SimpleEnum" redef here
|
||||||
|
|
||||||
.. bro:type:: Example::SimpleRecord
|
:bro:type:`Example::SimpleRecord`
|
||||||
|
|
||||||
:Type: :bro:type:`record`
|
:Type: :bro:type:`record`
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue