mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 00:14:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: dow
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: downto(0) { |n| .. }
|
||||
# --
|
||||
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 }
|
||||
6
extras/imported/ruby-mode/Counting/loop { __ }.yasnippet
Normal file
6
extras/imported/ruby-mode/Counting/loop { __ }.yasnippet
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: loo
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: loop { .. }
|
||||
# --
|
||||
loop { $0 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ste
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: step(2) { |e| .. }
|
||||
# --
|
||||
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 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: tim
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: times { |n| .. }
|
||||
# --
|
||||
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 }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: upt
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: upto(1.0/0.0) { |n| .. }
|
||||
# --
|
||||
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 }
|
||||
Reference in New Issue
Block a user