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

Function tokenString

static/editor.md/lib/codemirror/mode/go/go.js:84–95  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

82 }
83
84 function tokenString(quote) {
85 return function(stream, state) {
86 var escaped = false, next, end = false;
87 while ((next = stream.next()) != null) {
88 if (next == quote && !escaped) {end = true; break;}
89 escaped = !escaped && next == "\\";
90 }
91 if (end || !(escaped || quote == "`"))
92 state.tokenize = tokenBase;
93 return "string";
94 };
95 }
96
97 function tokenComment(stream, state) {
98 var maybeEnd = false, ch;

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected