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

Function tokenComment

static/editor.md/lib/codemirror/mode/groovy/groovy.js:123–133  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

121 }
122
123 function tokenComment(stream, state) {
124 var maybeEnd = false, ch;
125 while (ch = stream.next()) {
126 if (ch == "/" && maybeEnd) {
127 state.tokenize.pop();
128 break;
129 }
130 maybeEnd = (ch == "*");
131 }
132 return "comment";
133 }
134
135 function expectExpression(last) {
136 return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) ||

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected