diff --git a/languages/pico-8-cart/injections.scm b/languages/pico-8-cart/injections.scm index ad5251d..4d5d212 100644 --- a/languages/pico-8-cart/injections.scm +++ b/languages/pico-8-cart/injections.scm @@ -1,5 +1,10 @@ ; Hand the body of the __lua__ section to the Pico-8 Lua grammar so the ; dialect-aware parser parses it (compound-assignment statements, the `?` ; print shorthand, single-line `if (cond) stmt`, peek prefixes, etc.). +; +; The injection.language string must match the target language's `name` +; field in its config.toml. Zed case-folds via UniCase but does not +; treat hyphens as equivalent to spaces, so this has to be the literal +; "Pico-8 Lua" ( with a space ). ((lua_content) @injection.content - (#set! injection.language "pico-8-lua")) + (#set! injection.language "Pico-8 Lua"))