From a44f4bd41415e0dcab0720bc5cdbbe59ea825d8e Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 11 Nov 2012 20:52:52 +0900 Subject: [PATCH 1/2] fix an example of a synchronized placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $number が含まれて折らず,a synchronized placeholder の例になって いなかったので,$number を使っているものに修正しました. 例は自分の作ったスニペットの中から適当に持ってきているので,もっと 適切な例があればそれを使っていただければと思います. --- doc/neosnippet.txt | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 775bbaf..fd8ba9e 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -521,12 +521,10 @@ The structure of a placeholder can be: Example > - snippet if - if ${1:#:condition} - ${2:do} - endif - - ${3} + snippet namespace + namespace ${1:name} { + $[0] + } // namespace $1 < Note: If you like to include characters in snippets that already have a From 33e04bd750e3988f556c4016f655929d7a1422c5 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 11 Nov 2012 20:57:25 +0900 Subject: [PATCH 2/2] fix C++ namespace snippet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit namespace の開き括弧が抜けていたため,修正しました. --- autoload/neosnippet/snippets/cpp.snip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/neosnippet/snippets/cpp.snip b/autoload/neosnippet/snippets/cpp.snip index 4311fa2..2b0f84d 100644 --- a/autoload/neosnippet/snippets/cpp.snip +++ b/autoload/neosnippet/snippets/cpp.snip @@ -44,7 +44,7 @@ delete namespace snippet namespace abbr namespace {} options head - namespace ${1:#:name} + namespace ${1:#:name} { ${0:TARGET} } // namespace $1