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

Function attributeWrapperValue

lib/web/CodeMirror/mode/slim/slim.js:248–263  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

246 return attributeWrapper(stream, state);
247 }
248 function attributeWrapperValue(stream, state) {
249 var ch = stream.peek();
250 if (ch == '"' || ch == "\'") {
251 state.tokenize = readQuoted(ch, "string", true, false, attributeWrapper);
252 stream.next();
253 return state.tokenize(stream, state);
254 }
255 if (ch == '[') {
256 return startRubySplat(attributeWrapper)(stream, state);
257 }
258 if (stream.match(/^(true|false|nil)\b/)) {
259 state.tokenize = attributeWrapper;
260 return "keyword";
261 }
262 return startRubySplat(attributeWrapper)(stream, state);
263 }
264
265 function startAttributeWrapperMode(state, endQuote, tokenize) {
266 state.stack = {

Callers

nothing calls this directly

Calls 5

startRubySplatFunction · 0.85
readQuotedFunction · 0.70
nextMethod · 0.65
peekMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected