Fix parsing of @media and @keyframe