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

Function tokenComment

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

Source from the content-addressed store, hash-verified

131 };
132 }
133 function tokenComment(stream, state) {
134 while (true) {
135 if (stream.skipTo("*")) {
136 stream.next();
137 if (stream.eat("/")) {
138 state.tokenize = tokenBase;
139 break;
140 }
141 } else {
142 stream.skipToEnd();
143 break;
144 }
145 }
146 return "comment";
147 }
148
149 function pushContext(stream, state, type) {
150 state.context = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected