Add support for multiple refs in a single line