(endQuote)
| 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("-#")) { |