From 4a1b6d5fac9e2e27eaa07fb8cf096ec0fc0e237b Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 16 May 2026 19:10:56 +0200 Subject: [PATCH] plan(textarea-editor): make Prism bash-grammar grep minifier-safe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spec reviewer caught that the literal 'Prism.languages.bash' string doesn't appear in the minified prism.js (minifier renames Prism→e). Switch the verification grep to match either the bash shebang token or any languages.bash assignment; both survive minification. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/superpowers/plans/2026-05-16-textarea-code-editor.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md index 5d6af36..3688968 100644 --- a/docs/superpowers/plans/2026-05-16-textarea-code-editor.md +++ b/docs/superpowers/plans/2026-05-16-textarea-code-editor.md @@ -79,10 +79,12 @@ Verify: ```bash ls -la l4d2web/l4d2web/static/vendor/prism.{js,css} -grep -c 'Prism.languages.bash' l4d2web/l4d2web/static/vendor/prism.js +# Prism's minified bundle renames `Prism` → `e`, so grep for the +# bash-specific shebang regex that ships in the bash grammar instead. +grep -cE 'shebang|languages\.bash' l4d2web/l4d2web/static/vendor/prism.js ``` -Expected: `prism.js` around 15–25 KB; `prism.css` around 1–3 KB. Grep count ≥1 (confirming the bash grammar got included). +Expected: `prism.js` around 15–25 KB; `prism.css` around 1–3 KB. Grep count ≥1 (confirming the bash grammar got included — both `shebang` token and the language attachment are present in the minified bundle). - [ ] **Step 2: Download CodeJar from unpkg**