(value, index)
| 417 | } |
| 418 | |
| 419 | function eatModeChunk(value, index) { |
| 420 | var mode = modes[modes.length - 1]; |
| 421 | if (!mode.terminators) { |
| 422 | mode.terminators = compileTerminators(mode, language); |
| 423 | } |
| 424 | mode.terminators.lastIndex = index; |
| 425 | var match = mode.terminators.exec(value); |
| 426 | if (match) |
| 427 | return [value.substr(index, match.index - index), match[0], false]; |
| 428 | else |
| 429 | return [value.substr(index), '', true]; |
| 430 | } |
| 431 | |
| 432 | function keywordMatch(mode, match) { |
| 433 | var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0]; |
no test coverage detected
searching dependent graphs…