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

Function tokenString

static/editor.md/lib/codemirror/mode/dtd/dtd.js:66–78  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

64 }
65
66 function tokenString(quote) {
67 return function(stream, state) {
68 var escaped = false, ch;
69 while ((ch = stream.next()) != null) {
70 if (ch == quote && !escaped) {
71 state.tokenize = tokenBase;
72 break;
73 }
74 escaped = !escaped && ch == "\\";
75 }
76 return ret("string", "tag");
77 };
78 }
79
80 function inBlock(style, terminator) {
81 return function(stream, state) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

retFunction · 0.70

Tested by

no test coverage detected