From 34a0fb3a18679e42ecd27fba221873dc24bf5369 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 5 Oct 2026 22:01:08 +0200 Subject: [PATCH] Answer prose round 2: the selector's reserved quote named as opening a JSON value, and the List doc rewrapped --- fejkdata.go | 4 ++-- internal/grammar/path.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fejkdata.go b/fejkdata.go index 451d273..8a8eb42 100644 --- a/fejkdata.go +++ b/fejkdata.go @@ -114,8 +114,8 @@ func (c config) load() (folder, error) { // List returns the sorted dotted paths Fake renders: each category and every field, // column and linked table below it, a direct descent at a time, listing a level -// carrying a repeat but nothing below it. A choice consumes no segment, so a path continues through one -// only where every variant carries it. +// carrying a repeat but nothing below it. A choice consumes no segment, so a path +// continues through one only where every variant carries it. func (f *Generator) List() []string { f.mu.Lock() defer f.mu.Unlock() diff --git a/internal/grammar/path.go b/internal/grammar/path.go index 8774b49..e68eedc 100644 --- a/internal/grammar/path.go +++ b/internal/grammar/path.go @@ -139,7 +139,7 @@ func HasSelector(segs []string) bool { func SelectorOf(seg string) string { return seg[1 : len(seg)-1] } // inSelector is what a selector may not contain: the path grammar reserves brackets and -// braces, and inside a token a quote would end the path and a bar would split the token into arms. +// braces, a bar splits a token into arms, and a quote opens a JSON value. const inSelector = `[]{}"|` // UnspellableInSelector is the first character of s a selector cannot spell, "" where there is none.