MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / tokenComment

Function tokenComment

static/libs/javascript.js:153–163  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

151 }
152
153 function tokenComment(stream, state) {
154 var maybeEnd = false, ch;
155 while (ch = stream.next()) {
156 if (ch == "/" && maybeEnd) {
157 state.tokenize = tokenBase;
158 break;
159 }
160 maybeEnd = (ch == "*");
161 }
162 return ret("comment", "comment");
163 }
164
165 function tokenQuasi(stream, state) {
166 var escaped = false, next;

Callers 1

tokenBaseFunction · 0.85

Calls 1

retFunction · 0.85

Tested by

no test coverage detected