Skip to content

Commit

Permalink
Merge branch 'master' of github.com:davidavdav/JSObjectLiteral.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
davidavdav committed Jun 10, 2019
2 parents 0a42fa1 + 966ab9e commit 513fb8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mlstyle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ using MLStyle

mlstyle(node) = @match node begin
:({ $(kvs...) }) =>
let f = :($k : $v) -> Expr(:call, =>, string(k), mlstyle(v))
let f = begin
:($k : $v) -> Expr(:call, =>, string(k), mlstyle(v))
:($k) -> Expr(:call, =>, string(k), mlstyle(k))
end

Expr(:call, Dict, (f(kv) for kv in kvs if !(kv isa LineNumberNode))...)
end
:[$(elts...)] => Expr(:vect, map(mlstyle, elts)...)
Expand Down

2 comments on commit 513fb8b

@davidavdav
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/1300

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" 513fb8bce5131aaac315f0df31cdb1c7ea61f2a5
git push origin v0.1.0

Please sign in to comment.