diff --git a/scripts/zeekygen/example.zeek b/scripts/zeekygen/example.zeek index 360d044b64..681457d402 100644 --- a/scripts/zeekygen/example.zeek +++ b/scripts/zeekygen/example.zeek @@ -173,7 +173,7 @@ export { # This function isn't exported, so it won't appear anywhere in the generated # documentation. So using ``##``-style comments is pointless here. -function function_without_proto(tag: string): string +function function_without_proto(tag: string): string &is_used { # Zeekygen-style comments only apply to entities at global-scope so # Zeekygen doesn't associate the following comments with anything. diff --git a/testing/btest/Baseline/doc.zeekygen.identifier/test.rst b/testing/btest/Baseline/doc.zeekygen.identifier/test.rst index 219c92da8b..b24dc870a3 100644 --- a/testing/btest/Baseline/doc.zeekygen.identifier/test.rst +++ b/testing/btest/Baseline/doc.zeekygen.identifier/test.rst @@ -240,6 +240,7 @@ :source-code: zeekygen/example.zeek 176 184 :Type: :zeek:type:`function` (tag: :zeek:type:`string`) : :zeek:type:`string` + :Attributes: :zeek:attr:`&is_used` .. zeek:type:: ZeekygenExample::PrivateRecord