Skip to content

Commit

Permalink
Update src/parser/bugs_macro.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sunxd3 and github-actions[bot] authored Mar 6, 2024
1 parent 4fa546d commit a4fd75f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser/bugs_macro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ function bugs_expression(expr, line_num)

return Expr(:call, Base.Fix2(bugs_expression, line_num).(expr.args)...)
elseif Meta.isexpr(expr, :parameters)
error("Keyword argument syntax is not supported in BUGS, error at $line_num: $(expr)")
error(

Check warning on line 196 in src/parser/bugs_macro.jl

View check run for this annotation

Codecov / codecov/patch

src/parser/bugs_macro.jl#L195-L196

Added lines #L195 - L196 were not covered by tests
"Keyword argument syntax is not supported in BUGS, error at $line_num: $(expr)"
)
else
error("Invalid expression at $line_num: `$expr`")
end
Expand Down

0 comments on commit a4fd75f

Please sign in to comment.