MCPcopy Create free account
hub / github.com/TruthHun/BookStack / peekToken

Function peekToken

static/editor.md/lib/codemirror/mode/erlang/erlang.js:406–415  ·  view source on GitHub ↗
(state,depth)

Source from the content-addressed store, hash-verified

404 }
405
406 function peekToken(state,depth) {
407 var len = state.tokenStack.length;
408 var dep = (depth ? depth : 1);
409
410 if (len < dep) {
411 return false;
412 }else{
413 return state.tokenStack[len-dep];
414 }
415 }
416
417 function pushToken(state,token) {
418

Callers 2

tokenizerFunction · 0.85
indenterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected