diff --git a/src/parse.y b/src/parse.y index a31b47b0bd..8b3f8d64c8 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1092,8 +1092,10 @@ decl: new RecordType(fake_type_decl_list); ID* fake = create_dummy_id($3, fake_record); fake_type_decl_list = 0; - current_reST_doc->AddRedef( - new BroDocObj(fake, reST_doc_comments, true)); + BroDocObj* o = + new BroDocObj(fake, reST_doc_comments, true); + o->SetRole(true); + current_reST_doc->AddRedef(o); } else { diff --git a/testing/btest/Baseline/doc.autogen-reST-example/example.rst b/testing/btest/Baseline/doc.autogen-reST-example/example.rst index f06c23ba8b..516b7b51aa 100644 --- a/testing/btest/Baseline/doc.autogen-reST-example/example.rst +++ b/testing/btest/Baseline/doc.autogen-reST-example/example.rst @@ -279,7 +279,7 @@ Redefinitions document the "SimpleEnum" redef here -.. bro:type:: Example::SimpleRecord +:bro:type:`Example::SimpleRecord` :Type: :bro:type:`record`