mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix misassociation of Zeekygen-style comments within function scopes
All Zeekygen-style comments relate to entities at global scope, so those found within functions are now ignored instead of misassociated.
This commit is contained in:
parent
6323b0a8c2
commit
1f352a1e4d
2 changed files with 16 additions and 6 deletions
|
@ -175,6 +175,11 @@ export {
|
|||
# documentation. So using ``##``-style comments is pointless here.
|
||||
function function_without_proto(tag: string): string
|
||||
{
|
||||
# Zeekygen-style comments only apply to entities at global-scope so
|
||||
# Zeekygen doesn't associate the following comments with anything.
|
||||
##! This comment should be ignored by Zeekygen.
|
||||
## This comment should be ignored by Zeekygen.
|
||||
##< This comment should be ignored by Zeekygen.
|
||||
return "blah";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue