Alternera. Plugins. WasmModule. EditorMode
(alternera_plugin_wasm_module v0.9.0)
Copy Markdown
View Source
The colouring of the WebAssembly module step's configuration text in
the proxy's code editor: a colocated hook whose module code registers
the language "wasm_module_config" with the editor when app.js loads
(window.AlterneraEditorModes, read by the proxy's
assets/js/lua_editor/registered_modes.js). The hook itself does
nothing and no element uses it.
A configuration is most often JSON, so the parser colours JSON: strings
(keys apart from values), numbers, true, false, null and
brackets. Anything else is left plain, since the module may read any
text. It is this package's own, a few lines, and imports nothing.