MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / tokenSGMLComment

Function tokenSGMLComment

static/js/codemirror/mode/css/css.js:263–273  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

261 }
262
263 function tokenSGMLComment(stream, state) {
264 var dashes = 0, ch;
265 while ((ch = stream.next()) != null) {
266 if (dashes >= 2 && ch == ">") {
267 state.tokenize = tokenBase;
268 break;
269 }
270 dashes = (ch == "-") ? dashes + 1 : 0;
271 }
272 return ret("comment", "comment");
273 }
274
275 function tokenString(quote, nonInclusive) {
276 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 2

retFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected