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

Function quote

static/editor.md/lib/codemirror/mode/erlang/erlang.js:333–343  ·  view source on GitHub ↗
(stream,quoteChar,escapeChar)

Source from the content-addressed store, hash-verified

331 }
332
333 function quote(stream,quoteChar,escapeChar) {
334 while (!stream.eol()) {
335 var ch = stream.next();
336 if (ch == quoteChar) {
337 return true;
338 }else if (ch == escapeChar) {
339 stream.next();
340 }
341 }
342 return false;
343 }
344
345 function lookahead(stream) {
346 var m = stream.match(/([\n\s]+|%[^\n]*\n)*(.)/,false);

Callers 2

doubleQuoteFunction · 0.85
singleQuoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected