(quote)
| 75 | } |
| 76 | |
| 77 | function tokenLiteral(quote) { |
| 78 | return function(stream, state) { |
| 79 | var escaped = false, ch; |
| 80 | while ((ch = stream.next()) != null) { |
| 81 | if (ch == quote && !escaped) { |
| 82 | state.tokenize = tokenBase; |
| 83 | break; |
| 84 | } |
| 85 | escaped = !escaped && ch == "\\"; |
| 86 | } |
| 87 | return "string"; |
| 88 | }; |
| 89 | } |
| 90 | |
| 91 | function pushContext(state, type, col) { |
| 92 | state.context = {prev: state.context, indent: state.indent, col: col, type: type}; |