Improved snippet tabstop generation