plan(textarea-editor): make Prism bash-grammar grep minifier-safe
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) <noreply@anthropic.com>
This commit is contained in:
parent
02e9edd4ed
commit
4a1b6d5fac
1 changed files with 4 additions and 2 deletions
|
|
@ -79,10 +79,12 @@ Verify:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ls -la l4d2web/l4d2web/static/vendor/prism.{js,css}
|
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**
|
- [ ] **Step 2: Download CodeJar from unpkg**
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue