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

Function tokenString

static/editor.md/lib/codemirror/mode/d/d.js:77–88  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

75 }
76
77 function tokenString(quote) {
78 return function(stream, state) {
79 var escaped = false, next, end = false;
80 while ((next = stream.next()) != null) {
81 if (next == quote && !escaped) {end = true; break;}
82 escaped = !escaped && next == "\\";
83 }
84 if (end || !(escaped || multiLineStrings))
85 state.tokenize = null;
86 return "string";
87 };
88 }
89
90 function tokenComment(stream, state) {
91 var maybeEnd = false, ch;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected