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

Function chompSingleString

lib/web/CodeMirror/mode/elm/elm.js:169–181  ·  view source on GitHub ↗
(source, setState)

Source from the content-addressed store, hash-verified

167 }
168
169 function chompSingleString(source, setState)
170 {
171 while (source.skipTo('\\"')) { source.next(); source.next(); }
172 if (source.skipTo('"'))
173 {
174 source.next();
175 setState(normal());
176 return 'string';
177 }
178 source.skipToEnd();
179 setState(normal());
180 return 'error';
181 }
182
183 function chompChar(source, setState)
184 {

Callers

nothing calls this directly

Calls 5

setStateFunction · 0.85
skipToEndMethod · 0.80
normalFunction · 0.70
nextMethod · 0.65
skipToMethod · 0.45

Tested by

no test coverage detected