(index)
| 140 | |
| 141 | // Match the multi-regexp on the tokens starting at [index]. |
| 142 | function matchAt(index) { |
| 143 | for (var i = 0; i < n; ++i) { |
| 144 | if (!trigger[i].test(tokens[index + i].contents)) { |
| 145 | return false; |
| 146 | } |
| 147 | } |
| 148 | match = index; |
| 149 | return true; |
| 150 | } |
| 151 | |
| 152 | function callback() { |
| 153 | trigger.callback.call(command, match, event, tokens); |