Comment 17 for bug 1171276

Revision history for this message
SirVer (sirver) wrote :

I think we should actually use this opportunity and move to the global snippet definitions that you suggested:

description ".delete_if { |<key>,<value>| <block> }"
completion "Delete"
options "r"
trigger "(\S+)\.Del(ete)?_?if"
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?