(style, terminator)
| 78 | } |
| 79 | |
| 80 | function inBlock(style, terminator) { |
| 81 | return function(stream, state) { |
| 82 | while (!stream.eol()) { |
| 83 | if (stream.match(terminator)) { |
| 84 | state.tokenize = tokenBase; |
| 85 | break; |
| 86 | } |
| 87 | stream.next(); |
| 88 | } |
| 89 | return style; |
| 90 | }; |
| 91 | } |
| 92 | |
| 93 | return { |
| 94 | startState: function(base) { |