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

Function tokenCComment

mini-code-edit/cm/mode/less/less.js:148–158  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

146 }
147
148 function tokenCComment(stream, state) {
149 var maybeEnd = false, ch;
150 while ((ch = stream.next()) != null) {
151 if (maybeEnd && ch == "/") {
152 state.tokenize = tokenBase;
153 break;
154 }
155 maybeEnd = (ch == "*");
156 }
157 return ret("comment", "comment");
158 }
159
160 function tokenSGMLComment(stream, state) {
161 var dashes = 0, ch;

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected