aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-22 13:00:27 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-03-22 13:00:27 +0100
commit732296ddc078f9cce8ffeb3131fef8898330b6ae (patch)
treee79c911d1eed1fb5ec78128d2047a755453de675
parent63f564ccf247dd6d2019f0b73a6f3a0bfe3826d2 (diff)
printValue(): <REPEAT> -> «repeated»
This ensures that it doesn't get parsed as a valid Nix expression.
-rw-r--r--src/libexpr/eval.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index f7911e32b..333ad68eb 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -126,7 +126,7 @@ void printValue(std::ostream & str, std::set<const void *> & seen, const Value &
break;
case tAttrs: {
if (!v.attrs->empty() && !seen.insert(v.attrs).second)
- str << "<REPEAT>";
+ str << "«repeated»";
else {
str << "{ ";
for (auto & i : v.attrs->lexicographicOrder()) {
@@ -142,7 +142,7 @@ void printValue(std::ostream & str, std::set<const void *> & seen, const Value &
case tList2:
case tListN:
if (v.listSize() && !seen.insert(v.listElems()).second)
- str << "<REPEAT>";
+ str << "«repeated»";
else {
str << "[ ";
for (auto v2 : v.listItems()) {