From a2360779010a3f77246b6daadb87e213562dc526 Mon Sep 17 00:00:00 2001 From: kiith-sa Date: Sat, 1 Dec 2012 18:15:01 +0100 Subject: [PATCH] A toString() snippet. --- UltiSnips/d.snippets | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UltiSnips/d.snippets b/UltiSnips/d.snippets index 19bad71..8ed9b41 100644 --- a/UltiSnips/d.snippets +++ b/UltiSnips/d.snippets @@ -443,7 +443,7 @@ unittest endsnippet -# Operators +# Common member functions snippet opDis "opDispatch (opDis)" b ${1:/*return type*/} opDispatch(string s)() @@ -479,6 +479,13 @@ int opApply(int delegate(ref ${1:/*iterated type/s*/}) dg) } endsnippet +snippet toString "toString (toString)" b +string toString() @safe const pure nothrow +{ + ${1:/*code*/} +} +endsnippet + # Comments