Skip to content

Commit

Permalink
livescript: allow other types than map as metadata in the reader
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon authored and kanaka committed Oct 13, 2024
1 parent af5ae3e commit 26674d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions impls/livescript/reader.ls
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,8 @@ read-macro = (symbol, reader) ->

read-with-meta = (reader) ->
reader.next! # accept ^
if reader.peek! != '{'
parse-error "expected a map after with-meta reader macro '^'"

meta = read_list reader, '}'
meta = read_form reader
form = read_form reader

do
Expand Down

0 comments on commit 26674d9

Please sign in to comment.