fix #snippy problem where multiple placeholders on a single line would be replaced incorrectly