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

Function tokenSGMLComment

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

Source from the content-addressed store, hash-verified

56 }
57
58 function tokenSGMLComment(stream, state) {
59 var dashes = 0, ch;
60 while ((ch = stream.next()) != null) {
61 if (dashes >= 2 && ch == ">") {
62 state.tokenize = tokenBase;
63 break;
64 }
65 dashes = (ch == "-") ? dashes + 1 : 0;
66 }
67 return ret("comment", "comment");
68 }
69
70 function tokenString(quote) {
71 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected