aboutsummaryrefslogtreecommitdiff
path: root/doc/modules
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@toptal.com>2026-04-25 23:02:52 +0100
committerBozhidar Batsov <bozhidar@toptal.com>2026-04-25 23:02:52 +0100
commit2b49c82126c12180bbabbd929698dc35192b1a75 (patch)
tree2ec239dc4e1439aa225d23408741e9239002e0b1 /doc/modules
parent4928cbf3306b4699f6c4a7b63f934b647d545c00 (diff)
Split the dirconfig parser into a pure line classifier
The old parser walked a temp buffer with point and pcase'd on char-after, mixing IO, prefix dispatch, and bucket bookkeeping into one function. Pull the dispatch out into projectile--dirconfig-classify-line, which takes a string and returns a (BUCKET . VALUE) tag. The pure function is unit-testable without buffer plumbing, the IO wrapper shrinks to a one-shot read + dispatch, and the awkward (pcase ((pred (lambda ...)) ...)) for the comment-prefix check becomes a straightforward cond. No behavior change.
Diffstat (limited to 'doc/modules')
0 files changed, 0 insertions, 0 deletions