aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-10-02 09:25:34 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-10-02 09:25:34 +0900
commit31de6a5e48b65dface121e654e40e06de6bf364a (patch)
treeac3331876f21219a665b13858f1103a4098bb9e4
parentdf88ac36ed24e68d7d9d7e4d9aa471575d3c79bd (diff)
downloadvim-sonictemplate-31de6a5e48b65dface121e654e40e06de6bf364a.tar.gz
vim-sonictemplate-31de6a5e48b65dface121e654e40e06de6bf364a.tar.bz2
vim-sonictemplate-31de6a5e48b65dface121e654e40e06de6bf364a.zip
Update postfix completion
-rw-r--r--template/go/pattern.stpl23
-rw-r--r--template/java/pattern.stpl6
2 files changed, 29 insertions, 0 deletions
diff --git a/template/go/pattern.stpl b/template/go/pattern.stpl
index 1fe0989..26ac4c6 100644
--- a/template/go/pattern.stpl
+++ b/template/go/pattern.stpl
@@ -56,3 +56,26 @@
\(\S.*\)\.spr\%[int]l\%[n]$
{{_cursor_}} fmt.Sprintln({{$1}})
+
+\(\S\+\)\.func$
+ func {{$1}} {
+ {{_cursor_}}
+ }
+
+\(\S\+\)\.struct$
+ type {{$1}} struct {
+ {{_cursor_}}
+ }
+
+\(\S\+\)\.int$
+ {{$1}} int
+ {{_cursor_}}
+
+\(\S\+\)\.string$
+ {{$1}} string
+ {{_cursor_}}
+
+\(\S\+\)\.bool$
+ {{$1}} bool
+ {{_cursor_}}
+
diff --git a/template/java/pattern.stpl b/template/java/pattern.stpl
index 2a48364..69ad725 100644
--- a/template/java/pattern.stpl
+++ b/template/java/pattern.stpl
@@ -9,3 +9,9 @@
\(\S.*\)\.pr\%[int]l\%[n]$
System.out.println({{$1}});
{{_cursor_}}
+
+\(\S.*\)\.false$
+ assertFalse({{$1}});{{_cursor_}}
+
+\(\S.*\)\.true$
+ assertTrue({{$1}});{{_cursor_}}