(delim)
| 138 | }; |
| 139 | |
| 140 | function tokenHeredoc(delim) { |
| 141 | return function(stream, state) { |
| 142 | if (stream.sol() && stream.string == delim) state.tokens.shift() |
| 143 | stream.skipToEnd() |
| 144 | return "string-2" |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | function tokenize(stream, state) { |
| 149 | return (state.tokens[0] || tokenBase) (stream, state); |