Alternera.Plugins.Lua54.EditorMode (alternera_plugin_lua54 v0.9.0)

Copy Markdown View Source

The Lua 5.4 step's colouring in the proxy's code editor: a colocated hook whose module code registers the language "lua54" with the editor when app.js loads (window.AlterneraEditorModes, read by the proxy's assets/js/lua_editor/registered_modes.js), with formatSyntax: "lua54" so Format parses Lua 5.4. The hook itself does nothing and no element uses it.

The parser is CodeMirror's legacy Lua mode, the one Script's editor uses, copied into this module with its MIT notice: a package's hooks cannot import the proxy's npm packages (esbuild does not look in the proxy's node_modules for them), and a plugin ships what it needs. The mode imports nothing, so it brings no CodeMirror into app.js.