fix(spec): use legacy-modes/shell for bash language
@codemirror/lang-bash is not an official package. cm6's official path to bash highlighting is @codemirror/legacy-modes/mode/shell wrapped in StreamLanguage.define(), matching the same mechanism we use for the custom srccfg mode. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
778f98dedf
commit
43d4104cef
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ swap back to overlay, etc.) only need to preserve this contract.
|
|||
| Language | Source | Notes |
|
||||
|---|---|---|
|
||||
| `srccfg` | `srccfg-mode.js` — `StreamLanguage.define(…)`, ~30 LOC | Tokens: comment `//…`, string `"…"`, number, keyword (`exec`, `alias`, `bind`), identifier. Linewise. Tied to `srccfg-vocab.json` for autocomplete. |
|
||||
| `bash` | `@codemirror/lang-bash` | Stock package. |
|
||||
| `bash` | `@codemirror/legacy-modes/mode/shell` via `StreamLanguage.define()` | Official cm6 port of the CodeMirror 5 shell mode. Same loading mechanism as `srccfg`. |
|
||||
| `auto` | Resolved on mount from filename input | `.cfg → srccfg`, `.sh → bash`, otherwise `plain`. Re-evaluated on filename input change while dropdown sits in "auto" state. |
|
||||
| `plain` | No language extension | Editor still mounts so the language `<select>` remains usable. |
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue