MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / javascript

Function javascript

mini-code-edit/cm/mode/htmlmixed/htmlmixed.js:28–37  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

26 return style;
27 }
28 function javascript(stream, state) {
29 if (stream.match(/^<\/\s*script\s*>/i, false)) {
30 state.token = html;
31 state.localState = null;
32 state.mode = "html";
33 return html(stream, state);
34 }
35 return maybeBackup(stream, /<\/\s*script\s*>/,
36 jsMode.token(stream, state.localState));
37 }
38 function css(stream, state) {
39 if (stream.match(/^<\/\s*style\s*>/i, false)) {
40 state.token = html;

Callers

nothing calls this directly

Calls 2

htmlFunction · 0.85
maybeBackupFunction · 0.85

Tested by

no test coverage detected