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

Function tokenStringHelper

lib/web/CodeMirror/mode/dart/dart.js:100–116  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

98 else return "string"; //empty string
99 }
100 function tokenStringHelper(stream, state) {
101 var escaped = false;
102 while (!stream.eol()) {
103 if (!raw && !escaped && stream.peek() == "$") {
104 pushInterpolationStack(state);
105 state.tokenize = tokenInterpolation;
106 return "string";
107 }
108 var next = stream.next();
109 if (next == quote && !escaped && (!tripleQuoted || stream.match(quote + quote))) {
110 state.tokenize = null;
111 break;
112 }
113 escaped = !raw && !escaped && next == "\\";
114 }
115 return "string";
116 }
117 state.tokenize = tokenStringHelper;
118 return tokenStringHelper(stream, state);
119 }

Callers 1

tokenStringFunction · 0.85

Calls 5

pushInterpolationStackFunction · 0.85
eolMethod · 0.80
nextMethod · 0.65
peekMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected