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

Function tokenXMLComment

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

Source from the content-addressed store, hash-verified

365
366 // handle comments, including nested
367 function tokenXMLComment(stream, state) {
368 while (ch = stream.next()) {
369 if (ch == "-" && stream.match("->", true)) {
370 state.tokenize = tokenBase;
371 return ret("comment", "comment");
372 }
373 }
374 }
375
376
377 // handle CDATA

Callers

nothing calls this directly

Calls 1

retFunction · 0.70

Tested by

no test coverage detected