mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-14 17:42:03 +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,6 +2,7 @@
|
||||
# key: bm-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Benchmark.bmbm do .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
TESTS = ${1:10_000}
|
||||
Benchmark.bmbm do |results|
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: as
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert`snippet_paren.rb`${1:test}, "${0:Failure message.}"`snippet_paren.rb end`
|
||||
assert`(yas/ruby-snippet-paren)`${1:test} ${2:, "${3:Failure message.}"}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: ase
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_equal(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_equal`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end`
|
||||
assert_equal`(yas/ruby-snippet-paren)`${1:expected}, ${2:actual}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asid
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_in_delta(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_in_delta`snippet_paren.rb`${1:expected_float}, ${2:actual_float}, ${0:2 ** -20}`snippet_paren.rb end`
|
||||
assert_in_delta`(yas/ruby-snippet-paren)`${1:expected_float}, ${2:actual_float}, ${3:2 ** -20}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asio
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_instance_of(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_instance_of`snippet_paren.rb`${1:ExpectedClass}, ${0:actual_instance}`snippet_paren.rb end`
|
||||
assert_instance_of`(yas/ruby-snippet-paren)`${1:ExpectedClass}, ${3:actual_instance}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asko
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_kind_of(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_kind_of`snippet_paren.rb`${1:ExpectedKind}, ${0:actual_instance}`snippet_paren.rb end`
|
||||
assert_kind_of`(yas/ruby-snippet-paren)`${1:ExpectedKind}, ${2:actual_instance}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asm
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_match(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_match`snippet_paren.rb`/${1:expected_pattern}/, ${0:actual_string}`snippet_paren.rb end`
|
||||
assert_match`(yas/ruby-snippet-paren)`/${1:expected_pattern}/, ${2:actual_string}`(yas/ruby-snippet-paren t)`
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asn
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_nil(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end`
|
||||
assert_nil`(yas/ruby-snippet-paren)`${1:instance}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asnm
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_no_match(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_no_match`snippet_paren.rb`/${1:unexpected_pattern}/, ${0:actual_string}`snippet_paren.rb end`
|
||||
assert_no_match`(yas/ruby-snippet-paren)`/${1:unexpected_pattern}/, ${2:actual_string}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asne
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_not_equal(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_not_equal`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end`
|
||||
assert_not_equal`(yas/ruby-snippet-paren)`${1:unexpected}, ${0:actual}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asnn
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_not_nil(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_not_nil`snippet_paren.rb`${0:instance}`snippet_paren.rb end`
|
||||
assert_not_nil`(yas/ruby-snippet-paren)`${1:instance}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asns
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_not_same(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_not_same`snippet_paren.rb`${1:unexpected}, ${0:actual}`snippet_paren.rb end`
|
||||
assert_not_same`(yas/ruby-snippet-paren)`${1:unexpected}, ${2:actual}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asnr
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_nothing_raised(..) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_nothing_raised(${1:Exception}) { $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asnt
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_nothing_thrown { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_nothing_thrown { $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: aso
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_operator(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_operator`snippet_paren.rb`${1:left}, :${2:operator}, ${0:right}`snippet_paren.rb end`
|
||||
assert_operator`(yas/ruby-snippet-paren)`${1:left}, :${2:operator}, ${3:right}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asr
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_raise(..) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_raise(${1:Exception}) { $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: asrt
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_respond_to(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_respond_to`snippet_paren.rb`${1:object}, :${0:method}`snippet_paren.rb end`
|
||||
assert_respond_to`(yas/ruby-snippet-paren)`${1:object}, :${2:method}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: ass
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_same(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_same`snippet_paren.rb`${1:expected}, ${0:actual}`snippet_paren.rb end`
|
||||
(yas/ruby-snippet-paren)`${1:expected}, ${2:actual}`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: ass
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_send(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_send`snippet_paren.rb`[${1:object}, :${2:message}, ${0:args}]`snippet_paren.rb end`
|
||||
assert_send`(yas/ruby-snippet-paren)`[${1:object}, :${2:message}, ${3:args}]`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: ast
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: assert_throws(..) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
assert_throws(:${1:expected}) { $0 }
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: tc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: class .. < Test::Unit::TestCase .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
require "test/unit"
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: deft
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def test_ .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
def test_${1:case_name}
|
||||
$0
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: fl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: flunk(..)
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
flunk`snippet_paren.rb`"${0:Failure message.}"`snippet_paren.rb end`
|
||||
flunk`(yas/ruby-snippet-paren)`"${1:Failure message.}"`(yas/ruby-snippet-paren t)`
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: ts
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: require "tc_.." ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
require "test/unit"
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: rep
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: results.report(..) { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
results.report("${1:name}:") { TESTS.times { $0 } }
|
||||
Reference in New Issue
Block a user