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

Function tokenString

static/editor.md/lib/codemirror/mode/clike/clike.js:75–86  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected