ba2dd6a9a2
Zed resolves `injection.language` by matching it against the target language's `name` field ( config.toml ) via UniCase, which folds case but does NOT treat `-` as equivalent to ` `. The previous string "pico-8-lua" therefore did not resolve to any registered language and the entire __lua__ section rendered with zero highlights inside Zed. Per `LanguageRegistry::language_for_name_or_extension` in crates/language/src/language_registry.rs, only the `name` field and `path_suffixes` are consulted — the directory under languages/, the grammar `name`, the `scope`, and the tree-sitter.json `injection-regex` field are all ignored. ( `injection-regex` is a Helix/Neovim convention; Zed's production code never reads it. ) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>