MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / tokenComment

Function tokenComment

lib/web/CodeMirror/mode/javascript/javascript.js:152–162  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenBaseFunction · 0.70

Calls 2

retFunction · 0.70
nextMethod · 0.65

Tested by

no test coverage detected