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

Function suffix

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

Source from the content-addressed store, hash-verified

817
818// return a part of suffix of current stream from current position
819function suffix(stream, c){
820 var y=stream.string.length;
821 var x=y-stream.pos+1;
822 return stream.string.substr(stream.pos,(c&&c<y?c:x));
823}
824
825// eating and vomiting a part of stream from current position
826function eatSuffix(stream, c){

Callers 1

tokenPerlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected