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

Function tokenSGMLComment

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

Source from the content-addressed store, hash-verified

158 }
159
160 function tokenSGMLComment(stream, state) {
161 var dashes = 0, ch;
162 while ((ch = stream.next()) != null) {
163 if (dashes >= 2 && ch == ">") {
164 state.tokenize = tokenBase;
165 break;
166 }
167 dashes = (ch == "-") ? dashes + 1 : 0;
168 }
169 return ret("comment", "comment");
170 }
171
172 function tokenString(quote) {
173 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected