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

Function tokenString

static/editor.md/lib/codemirror/mode/pig/pig.js:52–65  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

50 }
51
52 function tokenString(quote) {
53 return function(stream, state) {
54 var escaped = false, next, end = false;
55 while((next = stream.next()) != null) {
56 if (next == quote && !escaped) {
57 end = true; break;
58 }
59 escaped = !escaped && next == "\\";
60 }
61 if (end || !(escaped || multiLineStrings))
62 state.tokenize = tokenBase;
63 return ret("string", "error");
64 };
65 }
66
67 function tokenBase(stream, state) {
68 var ch = stream.next();

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected