Skip to content

Commit b94a492

Browse files
committed
Change reader to use new list macro for try_read_quote
1 parent cdf454e commit b94a492

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/reader.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -509,21 +509,14 @@ pub fn try_read_quoted(input: &str) -> IResult<&str, Value> {
509509
let (rest_input, quoted_form_value) = try_read(form)?;
510510

511511
// (quote value)
512-
Ok((
513-
rest_input,
514-
vec![
515-
Symbol::intern("quote").to_rc_value(),
516-
quoted_form_value.to_rc_value(),
517-
]
518-
.into_list()
519-
.to_value(),
520-
))
512+
Ok((rest_input, list_val!(sym!("quote") quoted_form_value)))
521513
}
522514

523515
pub fn try_read(input: &str) -> IResult<&str, Value> {
524516
preceded(
525517
consume_clojure_whitespaces_parser,
526518
alt((
519+
try_read_meta,
527520
try_read_quoted,
528521
try_read_nil,
529522
try_read_map,

0 commit comments

Comments
 (0)