MCPcopy Index your code
hub / github.com/DHTMLX/gantt / readToken

Function readToken

samples/common/codehighlight/codemirror.js:1165–1172  ·  view source on GitHub ↗
(mode, stream, state, inner)

Source from the content-addressed store, hash-verified

1163 }
1164
1165 function readToken(mode, stream, state, inner) {
1166 for (var i = 0; i < 10; i++) {
1167 if (inner) { inner[0] = innerMode(mode, state).mode; }
1168 var style = mode.token(stream, state);
1169 if (stream.pos > stream.start) { return style }
1170 }
1171 throw new Error("Mode " + mode.name + " failed to advance stream.")
1172 }
1173
1174 var Token = function(stream, type, state) {
1175 this.start = stream.start; this.end = stream.pos;

Callers 3

processLineFunction · 0.85
takeTokenFunction · 0.85
runModeFunction · 0.85

Calls 1

innerModeFunction · 0.85

Tested by

no test coverage detected