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

Function tokenCComment

mini-code-edit/cm/mode/css/css.js:46–56  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

44 }
45
46 function tokenCComment(stream, state) {
47 var maybeEnd = false, ch;
48 while ((ch = stream.next()) != null) {
49 if (maybeEnd && ch == "/") {
50 state.tokenize = tokenBase;
51 break;
52 }
53 maybeEnd = (ch == "*");
54 }
55 return ret("comment", "comment");
56 }
57
58 function tokenSGMLComment(stream, state) {
59 var dashes = 0, ch;

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected