mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 09:54:17 +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,5 +2,6 @@
|
||||
# key: Md
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Marshal.dump(.., file)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
File.open(${1:"${2:path/to/file}.dump"}, "wb") { |${3:file}| Marshal.dump(${4:obj}, ${3:file}) }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: Ml
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Marshal.load(obj)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
File.open(${1:"${2:path/to/file}.dump"}, "rb") { |${3:file}| Marshal.load(${3:file}) }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: Pn-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: PStore.new( .. )
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
PStore.new(${1:"${2:file_name.pstore}"})
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: Yd-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: YAML.dump(.., file)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: Yl-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: YAML.load(file)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
File.open(${1:"${2:path/to/file}.yaml"}) { |${3:file}| YAML.load(${3:file}) }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: tra
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: transaction( .. ) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
transaction${1/(^.*?\S.*)|.*/(?1:\()/}${1:true}${1/(^.*?\S.*)|.*/(?1:\))/} { $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: xml-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xmlread(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
REXML::Document.new(File.read(${1:"${2:path/to/file}"}))
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: xpa
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: xpath(..) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
elements.each(${1:"${2://XPath}"}) do |${3:node}|
|
||||
$0
|
||||
|
||||
Reference in New Issue
Block a user