MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / tokenQuasi

Function tokenQuasi

lib/web/CodeMirror/mode/javascript/javascript.js:164–174  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenBaseFunction · 0.85

Calls 4

eatMethod · 0.80
currentMethod · 0.80
retFunction · 0.70
nextMethod · 0.65

Tested by

no test coverage detected