mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: alloc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Allocate and Deallocate array
|
||||
# --
|
||||
allocate(${1:array}, stat=${2:err})
|
||||
if ($2 /= 0) print *, "${1/(\w+).*/$1/}: Allocation request denied"
|
||||
|
||||
$0if (allocated(${1/(\w+).*/$1/})) deallocate(${1/(\w+).*/$1/}, stat=$2)
|
||||
if ($2 /= 0) print *, "${1/(\w+).*/$1/}: Deallocation request denied$0"
|
||||
Reference in New Issue
Block a user