Skip to content

Commit

Permalink
RakuAST: config values should be RakuAST nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 8, 2023
1 parent eb753a3 commit 564a6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/RakuAST/Fixups.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ in line '$line'"
# seen a divider after a row before?
if $first-divider.defined {
if $_ ne $first-divider {
%config<header-row> := 0;
%config<header-row> := RakuAST::IntLiteral.new(0);
last; # different, we're done!
}
++$other-dividers;
Expand All @@ -1195,7 +1195,7 @@ in line '$line'"
}

# set headers if only one divider was seen after the first row
%config<header-row> := 0
%config<header-row> := RakuAST::IntLiteral.new(0)
if %config<header-row>:!exists
&& $first-divider.defined
&& !$other-dividers;
Expand Down

0 comments on commit 564a6df

Please sign in to comment.