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

Function tokenComment

static/editor.md/lib/codemirror/mode/d/d.js:90–100  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

88 }
89
90 function tokenComment(stream, state) {
91 var maybeEnd = false, ch;
92 while (ch = stream.next()) {
93 if (ch == "/" && maybeEnd) {
94 state.tokenize = null;
95 break;
96 }
97 maybeEnd = (ch == "*");
98 }
99 return "comment";
100 }
101
102 function tokenNestedComment(stream, state) {
103 var maybeEnd = false, ch;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected