(input: string, searchStart = 0)
| 632 | } |
| 633 | |
| 634 | function getVariableRange(input: string, searchStart = 0): Range | null { |
| 635 | const start = input.indexOf('var(', searchStart); |
| 636 | if (start >= 0) { |
| 637 | const range = getParenthesesRange(input, start + 3); |
| 638 | if (range) { |
| 639 | return {start, end: range.end}; |
| 640 | } |
| 641 | } |
| 642 | return null; |
| 643 | } |
| 644 | |
| 645 | function getVariablesMatches(input: string): VariableMatch[] { |
| 646 | const ranges: VariableMatch[] = []; |
no test coverage detected