| 1 |
import { identifier } from "./identifier.js"; |
| 2 |
import { attributes } from "./attributes.js"; |
| 3 |
|
| 4 |
export var pseudos = ":(" + identifier + ")(?:\\((" + |
| 5 |
|
| 6 |
// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: |
| 7 |
// 1. quoted (capture 3; capture 4 or capture 5) |
| 8 |
"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + |
| 9 |
|
| 10 |
// 2. simple (capture 6) |
| 11 |
"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + |
| 12 |
|
| 13 |
// 3. anything else (capture 2) |
| 14 |
".*" + |
| 15 |
")\\)|)"; |