diff options
author | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-01 11:59:41 +0300 |
---|---|---|
committer | Joel Kronqvist <joel.kronqvist@iki.fi> | 2025-08-01 11:59:41 +0300 |
commit | 992865e827cdfffa6451ca37e74f185c5228f894 (patch) | |
tree | bdf89ab4a26aed61ed429795edf192de90350efc /src/sexp/mod.rs | |
parent | 61b985db80a15e230476af54b0ef8783fd8cbf63 (diff) | |
download | myslip-992865e827cdfffa6451ca37e74f185c5228f894.tar.gz myslip-992865e827cdfffa6451ca37e74f185c5228f894.zip |
Modified quote so the values of lists are evaluated
Diffstat (limited to 'src/sexp/mod.rs')
-rw-r--r-- | src/sexp/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sexp/mod.rs b/src/sexp/mod.rs index f6c50d7..71e62e9 100644 --- a/src/sexp/mod.rs +++ b/src/sexp/mod.rs @@ -39,7 +39,7 @@ use SLeaf::*; impl SExp { pub fn is_value(&self) -> bool { match self { - SCons(a, _) => **a == Atom(Quote), + SCons(a, b) => **a == Atom(Quote) && b.consists_of_values(), Atom(Var(_)) => false, Atom(_) => true, } |