mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 17:04:18 +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: dow
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: downto(0) { |n| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
downto(${1:0}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
downto(${1:0}) { ${2:$(if (string= yas/text "") "" "|")}${2:n}${2:$(if (string= yas/text "") "" "|")} $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: loo
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: loop { .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
loop { $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: ste
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: step(2) { |e| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
step(${1:2}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
step(${1:2}) { ${2:$(if (string= yas/text "") "" "|")}${2:n}${2:$(if (string= yas/text "") "" "|")} $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: tim
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: times { |n| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
times { ${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${1:n}${1/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
times { ${1:$(if (string= yas/text "") "" "|")}${1:n}${1:$(if (string= yas/text "") "" "|")} $0 }
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: upt
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: upto(1.0/0.0) { |n| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
upto(${1:1.0/0.0}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:n}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }
|
||||
upto(${1:1.0/0.0}) { ${2:$(if (string= yas/text "") "" "|")}${2:n}${2:$(if (string= yas/text "") "" "|")} $0 }
|
||||
Reference in New Issue
Block a user