mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +00:00
Add explicit "# key" directive to legacy snippet collection before deprecating filenames-as-triggers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#name : include Comparable; def <=> ... end
|
||||
# key: definitionsComp
|
||||
# --
|
||||
include Comparable
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#name : alias_method new, old
|
||||
# key: definitionsam
|
||||
# --
|
||||
alias_method :${new_name}, :${old_name}
|
||||
@@ -1,4 +1,5 @@
|
||||
#name : class << self ... end
|
||||
# key: definitionscla
|
||||
# --
|
||||
class << ${self}
|
||||
$0
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#name : class ... end
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# key: definitionscls
|
||||
# --
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#name : def method_missing ... end
|
||||
# key: definitionsmm
|
||||
# --
|
||||
def method_missing(method, *args)
|
||||
$0
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#name : attr_reader ...
|
||||
# key: definitionsr
|
||||
# --
|
||||
attr_reader :
|
||||
@@ -1,3 +1,4 @@
|
||||
#name : attr_accessor ...
|
||||
# key: definitionsrw
|
||||
# --
|
||||
attr_accessor :
|
||||
@@ -1,3 +1,4 @@
|
||||
#name : attr_writer ...
|
||||
# key: definitionsw
|
||||
# --
|
||||
attr_writer :
|
||||
Reference in New Issue
Block a user