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