(cssText: string)
| 79 | } |
| 80 | |
| 81 | function getTokenExclusionRanges(cssText: string) { |
| 82 | const singleQuoteGoesFirst = cssText.indexOf("'") < cssText.indexOf('"'); |
| 83 | const firstQuote = singleQuoteGoesFirst ? "'" : '"'; |
| 84 | const secondQuote = singleQuoteGoesFirst ? '"' : "'"; |
| 85 | const excludeRanges: TextRange[] = getAllOpenCloseRanges(cssText, firstQuote, firstQuote); |
| 86 | excludeRanges.push(...getAllOpenCloseRanges(cssText, secondQuote, secondQuote, excludeRanges)); |
| 87 | excludeRanges.push(...getAllOpenCloseRanges(cssText, '[', ']', excludeRanges)); |
| 88 | excludeRanges.push(...getAllOpenCloseRanges(cssText, '(', ')', excludeRanges)); |
| 89 | return excludeRanges; |
| 90 | } |
| 91 | |
| 92 | function parseSelectors(selectorText: string) { |
| 93 | const excludeRanges = getTokenExclusionRanges(selectorText); |
no test coverage detected