Change parser to correctly parse selectors with nested :local and :global switches, currently only :global supported