bs-nice
bs-nice copied to clipboard
write splitSelector in pure reason
currently inlines with [%bs.raw]
https://github.com/threepointone/bs-nice/blob/98611e1aba32a7be3049715900fca2ef64ca256f/src/nice.re#L901
Could you give me an example input ? I can't figure out what is it doing
given a string '.a, span:hover, &:matches(h1, h2)', it splits it into an array of selectors, [".a", "span:hover", "&:matches(h1, h2)"]
Where does selectorTokenizer
come from? I can't find it in the source.
But I guess it's a regex that looks something like this: /[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g
?