MCPcopy Create free account
hub / github.com/TruthHun/BookStack / tokenSGMLComment

Function tokenSGMLComment

static/editor.md/lib/codemirror/mode/dtd/dtd.js:54–64  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

52 }
53
54 function tokenSGMLComment(stream, state) {
55 var dashes = 0, ch;
56 while ((ch = stream.next()) != null) {
57 if (dashes >= 2 && ch == ">") {
58 state.tokenize = tokenBase;
59 break;
60 }
61 dashes = (ch == "-") ? dashes + 1 : 0;
62 }
63 return ret("comment", "comment");
64 }
65
66 function tokenString(quote) {
67 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected