snippets: ignore null text.
snippets: clear old text before insertion.
snippets: make sure we add \n when parsing.
snippets: tab stop starts from 0.