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

Function restOfLine

static/editor.md/lib/codemirror/mode/jade/jade.js:511–522  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

509 }
510 }
511 function restOfLine(stream, state) {
512 if (stream.sol()) {
513 // if restOfLine was set at end of line, ignore it
514 state.restOfLine = '';
515 }
516 if (state.restOfLine) {
517 stream.skipToEnd();
518 var tok = state.restOfLine;
519 state.restOfLine = '';
520 return tok;
521 }
522 }
523
524
525 function startState() {

Callers 1

nextTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected