mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 08:54:19 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: do
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Insert do |variable| … end
|
||||
# --
|
||||
do${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1: |)/}${1:variable}${1/(^(?<var>\s*[a-z_][a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}
|
||||
$0
|
||||
end
|
||||
Reference in New Issue
Block a user