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

Function tokenComment

static/editor.md/lib/codemirror/mode/kotlin/kotlin.js:174–184  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

172 }
173
174 function tokenComment(stream, state) {
175 var maybeEnd = false, ch;
176 while (ch = stream.next()) {
177 if (ch == "/" && maybeEnd) {
178 state.tokenize.pop();
179 break;
180 }
181 maybeEnd = (ch == "*");
182 }
183 return "comment";
184 }
185
186 function expectExpression(last) {
187 return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) ||

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected