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

Function eatSuffix

static/editor.md/lib/codemirror/mode/perl/perl.js:826–835  ·  view source on GitHub ↗
(stream, c)

Source from the content-addressed store, hash-verified

824
825// eating and vomiting a part of stream from current position
826function eatSuffix(stream, c){
827 var x=stream.pos+c;
828 var y;
829 if(x<=0)
830 stream.pos=0;
831 else if(x>=(y=stream.string.length-1))
832 stream.pos=y;
833 else
834 stream.pos=x;
835}
836
837});

Callers 1

tokenPerlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected