(quote)
| 64 | } |
| 65 | |
| 66 | function tokenString(quote) { |
| 67 | return function(stream, state) { |
| 68 | var escaped = false, ch; |
| 69 | while ((ch = stream.next()) != null) { |
| 70 | if (ch == quote && !escaped) { |
| 71 | state.tokenize = tokenBase; |
| 72 | break; |
| 73 | } |
| 74 | escaped = !escaped && ch == "\\"; |
| 75 | } |
| 76 | return ret("string", "tag"); |
| 77 | }; |
| 78 | } |
| 79 | |
| 80 | function inBlock(style, terminator) { |
| 81 | return function(stream, state) { |