(stream, state)
| 126 | } |
| 127 | |
| 128 | var tokenDollar = function(stream, state) { |
| 129 | if (state.tokens.length > 1) stream.eat('$'); |
| 130 | var ch = stream.next() |
| 131 | if (/['"({]/.test(ch)) { |
| 132 | state.tokens[0] = tokenString(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string"); |
| 133 | return tokenize(stream, state); |
| 134 | } |
| 135 | if (!/\d/.test(ch)) stream.eatWhile(/\w/); |
| 136 | state.tokens.shift(); |
| 137 | return 'def'; |
| 138 | }; |
| 139 | |
| 140 | function tokenHeredoc(delim) { |
| 141 | return function(stream, state) { |