MCPcopy Create free account
hub / github.com/TruthHun/BookStack / rubyInQuote

Function rubyInQuote

static/editor.md/lib/codemirror/mode/slim/slim.js:138–151  ·  view source on GitHub ↗
(endQuote, tokenize)

Source from the content-addressed store, hash-verified

136 }
137
138 function rubyInQuote(endQuote, tokenize) {
139 // TODO: add multi line support
140 return function(stream, state) {
141 var ch = stream.peek();
142 if (ch == endQuote && state.rubyState.tokenize.length == 1) {
143 // step out of ruby context as it seems to complete processing all the braces
144 stream.next();
145 state.tokenize = tokenize;
146 return "closeAttributeTag";
147 } else {
148 return ruby(stream, state);
149 }
150 };
151 }
152 function startRubySplat(tokenize) {
153 var rubyState;
154 var runSplat = function(stream, state) {

Callers 3

htmlFunction · 0.70
subFunction · 0.70
readQuotedFunction · 0.70

Calls 1

rubyFunction · 0.70

Tested by

no test coverage detected