(close)
| 33 | } |
| 34 | } |
| 35 | function inTag (close) { |
| 36 | if (close == "{") { |
| 37 | close = "}"; |
| 38 | } |
| 39 | return function (stream, state) { |
| 40 | var ch = stream.next(); |
| 41 | if ((ch == close) && stream.eat("}")) { |
| 42 | state.tokenize = tokenBase; |
| 43 | return "tag"; |
| 44 | } |
| 45 | if (stream.match(keywords)) { |
| 46 | return "keyword"; |
| 47 | } |
| 48 | return close == "#" ? "comment" : "string"; |
| 49 | }; |
| 50 | } |
| 51 | return { |
| 52 | startState: function () { |
| 53 | return {tokenize: tokenBase}; |