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

Function tokenString

static/editor.md/lib/codemirror/mode/fortran/fortran.js:155–168  ·  view source on GitHub ↗
(quote)

Source from the content-addressed store, hash-verified

153 }
154
155 function tokenString(quote) {
156 return function(stream, state) {
157 var escaped = false, next, end = false;
158 while ((next = stream.next()) != null) {
159 if (next == quote && !escaped) {
160 end = true;
161 break;
162 }
163 escaped = !escaped && next == "\\";
164 }
165 if (end || !escaped) state.tokenize = null;
166 return "string";
167 };
168 }
169
170 // Interface
171

Callers 1

tokenBaseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected