Completely parse labels

Otherwise, a label like '//db*' is treated as '//db', which is probably not the intended behaviour.