Skip to content

Commit

Permalink
swift5: allow non-maps as metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon authored and kanaka committed Oct 16, 2024
1 parent 1c22d48 commit a30b67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impls/swift5/Sources/core/Reader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private extension Parsers {
static let spliceUnquote = ("~@" *> _form).readerMacros("splice-unquote")
static let unquote = ("~" *> _form).readerMacros("unquote")
static let deref = ("@" *> _form).readerMacros("deref")
static let meta = ("^" *> hashmap <*> _form).map { Expr.list([.symbol("with-meta"), $1, $0]) }
static let meta = ("^" *> _form <*> _form).map { Expr.list([.symbol("with-meta"), $1, $0]) }


static let readerMacros = oneOf(
Expand Down

0 comments on commit a30b67a

Please sign in to comment.