Skip to content

Commit 142d929

Browse files
authored
Merge pull request #141 from bazsi/cfg-grammar-fix-to-set-context-in-log-forks
cfg-grammar: fix context for looking up blocks
2 parents 3e42c0b + a972114 commit 142d929

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/cfg-grammar.y

+6-6
Original file line numberDiff line numberDiff line change
@@ -799,23 +799,23 @@ log_forks
799799
;
800800

801801
log_fork
802-
: KW_LOG optional_string '{' log_content '}'
802+
: KW_LOG optional_string '{' _log_context_push log_content _log_context_pop '}'
803803
{
804804
if ($2)
805805
{
806-
log_expr_node_set_name($4, $2);
806+
log_expr_node_set_name($5, $2);
807807
free($2);
808808
}
809-
$$ = $4;
809+
$$ = $5;
810810
}
811-
| KW_CHANNEL optional_string '{' log_content '}'
811+
| KW_CHANNEL optional_string '{' _log_context_push log_content _log_context_pop '}'
812812
{
813813
if ($2)
814814
{
815-
log_expr_node_set_name($4, $2);
815+
log_expr_node_set_name($5, $2);
816816
free($2);
817817
}
818-
$$ = $4;
818+
$$ = $5;
819819
}
820820
;
821821

0 commit comments

Comments
 (0)