- no blank lines are allowed
- all fields that were optional, stay optional
- order does not matter
- all strings are quoted
- if a global state is used, the snippet line must not contain any other option.
- this deprecates the old way of defining snippets.
- some keywords can be repeated (i.e. having multiple triggers for one snippet).
I think we should actually use this opportunity and move to the global snippet definitions that you suggested:
description ".delete_if { |<key>,<value>| <block> }" .Del(ete) ?_?if"
completion "Delete"
options "r"
trigger "(\S+)\
snippet
....
endsnippet
I think the rules should be like this:
- no blank lines are allowed
- all fields that were optional, stay optional
- order does not matter
- all strings are quoted
- if a global state is used, the snippet line must not contain any other option.
- this deprecates the old way of defining snippets.
- some keywords can be repeated (i.e. having multiple triggers for one snippet).
What do you think?