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

Function innerMode

samples/common/codehighlight/codemirror.js:790–799  ·  view source on GitHub ↗
(mode, state)

Source from the content-addressed store, hash-verified

788 // Given a mode and a state (for that mode), find the inner mode and
789 // state at the position that the state refers to.
790 function innerMode(mode, state) {
791 var info;
792 while (mode.innerMode) {
793 info = mode.innerMode(state);
794 if (!info || info.mode == mode) { break }
795 state = info.state;
796 mode = info.mode;
797 }
798 return info || {mode: mode, state: state}
799 }
800
801 function startState(mode, a1, a2) {
802 return mode.startState ? mode.startState(a1, a2) : true

Callers 2

callBlankLineFunction · 0.85
readTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected