aboutsummaryrefslogtreecommitdiff
path: root/tasks/20261014-191535/TASK.md
diff options
context:
space:
mode:
authorTommaso Negri <me@tommasongr.com>2026-10-27 16:45:21 +0100
committerTommaso Negri <me@tommasongr.com>2026-10-27 16:45:21 +0100
commit4fba7cae5867f4457b66dec6ba38e8e7d9231f0b (patch)
treea21930b4aebc537bb21c31cf64468fe33f2e5f5e /tasks/20261014-191535/TASK.md
parent9ce5b3b6d52368b9333a9d5f98c3cd2b1a3cb038 (diff)
downloadbar-master.tar.gz
bar-master.zip
make highlight parsing more reliableHEADmaster
Diffstat (limited to 'tasks/20261014-191535/TASK.md')
-rw-r--r--tasks/20261014-191535/TASK.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/tasks/20261014-191535/TASK.md b/tasks/20261014-191535/TASK.md
index 06556ad..40f9239 100644
--- a/tasks/20261014-191535/TASK.md
+++ b/tasks/20261014-191535/TASK.md
@@ -1,6 +1,6 @@
# Parse highlight prefixes without regex backtracking surprises
-- STATUS: OPEN
+- STATUS: CLOSED
- PRIORITY: 60
- TAGS: review,bug,core
@@ -13,3 +13,5 @@ Approach: Define the contract for a prefix with no body, zero/out-of-range level
Completion checks: Cover ordinary text, valid levels, &!1, &!12, &!0 text, out-of-range and huge levels, malformed prefixes, embedded &!, empty text, and whitespace-only bodies. No partial level interpretation is possible. Preserve the existing one-based Config.highlights convention.
Design constraint: Follow README.md: keep source-based configuration, no dependencies or plugin framework, and use the smallest readable change that makes the existing behavior reliable. This is a suggestion for individual review, not a deadline. Findings were recorded on 2026-10-14; re-check the current code before implementing.
+
+Implemented an explicit leading-prefix parser with ASCII digits and no partial level interpretation. Textless and malformed prefixes remain literal; numeric prefixes with a body are stripped even when the level is invalid. Body whitespace and one-based highlight indexing are preserved. Added parser regression coverage and documented the contract. Validation: `swift test` passed all 22 tests.