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

Function tokenSGMLComment

static/js/codemirror/mode/less/less.js:195–205  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

193 }
194
195 function tokenSGMLComment(stream, state) {
196 var dashes = 0, ch;
197 while ((ch = stream.next()) != null) {
198 if (dashes >= 2 && ch == ">") {
199 state.tokenize = tokenBase;
200 break;
201 }
202 dashes = (ch == "-") ? dashes + 1 : 0;
203 }
204 return ret("comment", "comment");
205 }
206
207 function tokenString(quote) {
208 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 2

retFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected