(quote)
| 115 | |
| 116 | // 'string', with char specified in quote escaped by '\' |
| 117 | function tokenLiteral(quote) { |
| 118 | return function(stream, state) { |
| 119 | var escaped = false, ch; |
| 120 | while ((ch = stream.next()) != null) { |
| 121 | if (ch == quote && !escaped) { |
| 122 | state.tokenize = tokenBase; |
| 123 | break; |
| 124 | } |
| 125 | escaped = !escaped && ch == "\\"; |
| 126 | } |
| 127 | return "string"; |
| 128 | }; |
| 129 | } |
| 130 | function tokenComment(stream, state) { |
| 131 | while (true) { |
| 132 | if (stream.skipTo("*")) { |
no outgoing calls
no test coverage detected
searching dependent graphs…