mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 22:42:25 +00:00
* Small change to textmate_import.rb to import (commented) "scope" directive
* Reimported the HTML and Ruby bundle with the previous fix * Applied Rob Christie's patches of issues 109 and 110 0001-Deleted-because-this-is-supported-via-dwim-with-rcod.patch 0002-Updated-snippets.patch 0003-Added-setup.el-file-that-must-be-loaded-prior-to-loa.patch 0004-ruby-mode-class-and-module-snippets-updated.patch 0005-changes-to-counting-snippets-and-some-declaration-sn.patch patching some things manually. Thanks a lot Rob!
This commit is contained in:
@@ -2,11 +2,10 @@
|
||||
# key: cla
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: ClassName = Struct .. do .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} = Struct.new(:${2:attr_names}) do
|
||||
def ${3:method_name}
|
||||
$0
|
||||
end
|
||||
|
||||
|
||||
${1:`(yas/ruby-infer-class-name)`} = Struct.new(:${2:attr_names}) do
|
||||
def ${3:method_name}
|
||||
$0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user