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

Function tokenComment

static/editor.md/lib/codemirror/mode/tcl/tcl.js:106–116  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

104 };
105 }
106 function tokenComment(stream, state) {
107 var maybeEnd = false, ch;
108 while (ch = stream.next()) {
109 if (ch == "#" && maybeEnd) {
110 state.tokenize = tokenBase;
111 break;
112 }
113 maybeEnd = (ch == "*");
114 }
115 return "comment";
116 }
117 function tokenUnparsed(stream, state) {
118 var maybeEnd = 0, ch;
119 while (ch = stream.next()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected