**To reproduce:** ``` :is(:not(:has(>.foo)), :has(>.foo.bar)) { overflow: clip; } ``` **Current behavior:** Throw a: ParseError: Missing closing ')' **Expected behavior:** No exception has the number of close parenthesis is correct **Environment information:** - `less` version: 4.2.0 - `nodejs` version: 20.17 - `operating system`: windows