Skip to content

Commit ea0691b

Browse files
authored
Adapt @compact to work with minor change from JuliaSyntax.jl (#9)
1 parent 6ec599e commit ea0691b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compact.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ macro compact(fex, kwexs...)
8383
# check input
8484
Meta.isexpr(fex, :(->)) || error("expects a do block")
8585
isempty(kwexs) && error("expects keyword arguments")
86-
all(ex -> Meta.isexpr(ex, :kw), kwexs) || error("expects only keyword argumens")
86+
all(ex -> Meta.isexpr(ex, (:kw,:(=))), kwexs) || error("expects only keyword argumens")
8787

8888
# check if user has named layer:
8989
name = findfirst(ex -> ex.args[1] == :name, kwexs)

0 commit comments

Comments
 (0)