From de37bc0269098f0f43804fa4446f96a33ad4b5e1 Mon Sep 17 00:00:00 2001 From: Zhang Chiyuan Date: Fri, 12 Dec 2008 05:45:36 +0000 Subject: [PATCH] fix a 'bug' in the class snippet for c++-mode --- snippets/text-mode/cc-mode/c++-mode/class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/text-mode/cc-mode/c++-mode/class b/snippets/text-mode/cc-mode/c++-mode/class index 68377b5..820fc6c 100644 --- a/snippets/text-mode/cc-mode/c++-mode/class +++ b/snippets/text-mode/cc-mode/c++-mode/class @@ -3,6 +3,6 @@ class ${1:Name} { public: - ${1:$(yas/substr text "[^:]*")}($2); - virtual ~${1:$(yas/substr text "[^:]*")}(); + ${1:$(yas/substr text "[^: ]*")}($2); + virtual ~${1:$(yas/substr text "[^: ]*")}(); }; \ No newline at end of file