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

Function nextUntilUnescaped

static/editor.md/lib/codemirror/mode/haxe/haxe.js:44–52  ·  view source on GitHub ↗
(stream, end)

Source from the content-addressed store, hash-verified

42 }
43
44 function nextUntilUnescaped(stream, end) {
45 var escaped = false, next;
46 while ((next = stream.next()) != null) {
47 if (next == end && !escaped)
48 return false;
49 escaped = !escaped && next == "\\";
50 }
51 return escaped;
52 }
53
54 // Used as scratch variables to communicate multiple values without
55 // consing up tons of objects.

Callers 2

haxeTokenBaseFunction · 0.70
haxeTokenStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected