MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / jsTokenComment

Function jsTokenComment

mini-code-edit/cm/mode/javascript/javascript.js:103–113  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

101 }
102
103 function jsTokenComment(stream, state) {
104 var maybeEnd = false, ch;
105 while (ch = stream.next()) {
106 if (ch == "/" && maybeEnd) {
107 state.tokenize = jsTokenBase;
108 break;
109 }
110 maybeEnd = (ch == "*");
111 }
112 return ret("comment", "comment");
113 }
114
115 // Parser
116

Callers

nothing calls this directly

Calls 1

retFunction · 0.70

Tested by

no test coverage detected