MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / tokenQuasi

Function tokenQuasi

static/libs/javascript.js:165–175  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

163 }
164
165 function tokenQuasi(stream, state) {
166 var escaped = false, next;
167 while ((next = stream.next()) != null) {
168 if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
169 state.tokenize = tokenBase;
170 break;
171 }
172 escaped = !escaped && next == "\\";
173 }
174 return ret("quasi", "string-2", stream.current());
175 }
176
177 var brackets = "([{}])";
178 // This is a crude lookahead trick to try and notice that we're

Callers 1

tokenBaseFunction · 0.85

Calls 1

retFunction · 0.85

Tested by

no test coverage detected