(quote)
| 111 | } |
| 112 | |
| 113 | function string(quote) { |
| 114 | return function(stream, state) { |
| 115 | var escaped = false, ch; |
| 116 | while ((ch = stream.next()) != null) { |
| 117 | if (ch == quote && !escaped) break; |
| 118 | escaped = !escaped && ch == "\\"; |
| 119 | } |
| 120 | if (!escaped) state.cur = normal; |
| 121 | return "string"; |
| 122 | }; |
| 123 | } |
| 124 | |
| 125 | return { |
| 126 | startState: function(basecol) { |
no outgoing calls