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

Function tokenAtString

static/editor.md/lib/codemirror/mode/clike/clike.js:234–243  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

232
233 // C#-style strings where "" escapes a quote.
234 function tokenAtString(stream, state) {
235 var next;
236 while ((next = stream.next()) != null) {
237 if (next == '"' && !stream.eat('"')) {
238 state.tokenize = null;
239 break;
240 }
241 }
242 return "string";
243 }
244
245 // C++11 raw string literal is <prefix>"<delim>( anything )<delim>", where
246 // <delim> can be a string up to 16 characters long.

Callers 1

clike.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected