(stream, state)
| 22 | keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b"); |
| 23 | |
| 24 | function tokenBase (stream, state) { |
| 25 | stream.eatWhile(/[^\{]/); |
| 26 | var ch = stream.next(); |
| 27 | if (ch == "{") { |
| 28 | if (ch = stream.eat(/\{|%|#/)) { |
| 29 | state.tokenize = inTag(ch); |
| 30 | return "tag"; |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | function inTag (close) { |
| 35 | if (close == "{") { |
| 36 | close = "}"; |