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

Function rubyInQuote

static/editor.md/lib/codemirror/mode/haml/haml.js:19–31  ·  view source on GitHub ↗
(endQuote)

Source from the content-addressed store, hash-verified

17 var rubyMode = CodeMirror.getMode(config, "ruby");
18
19 function rubyInQuote(endQuote) {
20 return function(stream, state) {
21 var ch = stream.peek();
22 if (ch == endQuote && state.rubyState.tokenize.length == 1) {
23 // step out of ruby context as it seems to complete processing all the braces
24 stream.next();
25 state.tokenize = html;
26 return "closeAttributeTag";
27 } else {
28 return ruby(stream, state);
29 }
30 };
31 }
32
33 function ruby(stream, state) {
34 if (stream.match("-#")) {

Callers 1

htmlFunction · 0.70

Calls 1

rubyFunction · 0.70

Tested by

no test coverage detected