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

Function tokenPreProcessing

mini-code-edit/cm/mode/xquery/xquery.js:388–395  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

386
387 // handle preprocessing instructions
388 function tokenPreProcessing(stream, state) {
389 while (ch = stream.next()) {
390 if (ch == "?" && stream.match(">", true)) {
391 state.tokenize = tokenBase;
392 return ret("comment", "comment meta");
393 }
394 }
395 }
396
397
398 // functions to test the current context of the state

Callers

nothing calls this directly

Calls 1

retFunction · 0.70

Tested by

no test coverage detected