mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00
no semantic changes: corrected & reflowed some comments, plus a whitespace tweak
This commit is contained in:
parent
fa61a715bc
commit
c8be7ec795
3 changed files with 14 additions and 10 deletions
11
src/parse.y
11
src/parse.y
|
@ -1288,11 +1288,14 @@ lambda_body:
|
|||
{
|
||||
zeek::detail::set_location(@1, @5);
|
||||
|
||||
// Code duplication here is sad but needed. end_func actually instantiates the function
|
||||
// and associates it with an ID. We perform that association later and need to return
|
||||
// a lambda expression.
|
||||
// Code duplication here is sad but needed.
|
||||
// end_func actually instantiates the function
|
||||
// and associates it with an ID. We perform that
|
||||
// association later and need to return a lambda
|
||||
// expression.
|
||||
|
||||
// Gather the ingredients for a BroFunc from the current scope
|
||||
// Gather the ingredients for a Func from the
|
||||
// current scope.
|
||||
auto ingredients = std::make_unique<zeek::detail::function_ingredients>(
|
||||
zeek::IntrusivePtr{zeek::NewRef{}, zeek::detail::current_scope()},
|
||||
zeek::IntrusivePtr{zeek::AdoptRef{}, $3});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue