(stream, state)
| 98 | else return "string"; //empty string |
| 99 | } |
| 100 | function tokenStringHelper(stream, state) { |
| 101 | var escaped = false; |
| 102 | while (!stream.eol()) { |
| 103 | if (!raw && !escaped && stream.peek() == "$") { |
| 104 | pushInterpolationStack(state); |
| 105 | state.tokenize = tokenInterpolation; |
| 106 | return "string"; |
| 107 | } |
| 108 | var next = stream.next(); |
| 109 | if (next == quote && !escaped && (!tripleQuoted || stream.match(quote + quote))) { |
| 110 | state.tokenize = null; |
| 111 | break; |
| 112 | } |
| 113 | escaped = !raw && !escaped && next == "\\"; |
| 114 | } |
| 115 | return "string"; |
| 116 | } |
| 117 | state.tokenize = tokenStringHelper; |
| 118 | return tokenStringHelper(stream, state); |
| 119 | } |
no test coverage detected