mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-18 11:14:17 +00:00
* Fix issue 113: invalid filenames on Windows. Thanks claudio.bley!
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: File
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: File.open("..") { |file| .. }
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 }
|
||||
Reference in New Issue
Block a user