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

Function tokenString

static/editor.md/lib/codemirror/mode/tcl/tcl.js:92–105  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

90 }
91 }
92 function tokenString(quote) {
93 return function(stream, state) {
94 var escaped = false, next, end = false;
95 while ((next = stream.next()) != null) {
96 if (next == quote && !escaped) {
97 end = true;
98 break;
99 }
100 escaped = !escaped && next == "\\";
101 }
102 if (end) state.tokenize = tokenBase;
103 return "string";
104 };
105 }
106 function tokenComment(stream, state) {
107 var maybeEnd = false, ch;
108 while (ch = stream.next()) {

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected