(quote)
| 98 | } |
| 99 | |
| 100 | function string(quote) { |
| 101 | return function(stream, state) { |
| 102 | var escaped = false, ch; |
| 103 | while ((ch = stream.next()) != null) { |
| 104 | if (ch == quote && !escaped) break; |
| 105 | escaped = !escaped && ch == "\\"; |
| 106 | } |
| 107 | if (!escaped) state.cur = normal; |
| 108 | return "string"; |
| 109 | }; |
| 110 | } |
| 111 | |
| 112 | return { |
| 113 | startState: function(basecol) { |