aboutsummaryrefslogtreecommitdiff
path: root/template/java
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2012-04-12 21:10:48 -0700
committermattn <mattn.jp@gmail.com>2012-04-12 21:10:48 -0700
commitcc759ac441d910f4b47a378e02301c538a05ca1e (patch)
tree2cf941e93df106f9cbc9e2346dfeba11d6b9ce25 /template/java
parent98266fe2cd45b6d353955c9279dc0fab0b8d5098 (diff)
parent8e9cfb1e124b4d2329c2b671370a65ce37e0923a (diff)
downloadvim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.tar.gz
vim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.tar.bz2
vim-sonictemplate-cc759ac441d910f4b47a378e02301c538a05ca1e.zip
Merge pull request #5 from baopham/master
some more templates for html, python and java
Diffstat (limited to 'template/java')
-rw-r--r--template/java/base-class.java4
-rw-r--r--template/java/snip-comment-block.java3
-rw-r--r--template/java/snip-doc-comment.java3
3 files changed, 8 insertions, 2 deletions
diff --git a/template/java/base-class.java b/template/java/base-class.java
index e87b16a..f472f63 100644
--- a/template/java/base-class.java
+++ b/template/java/base-class.java
@@ -1,11 +1,11 @@
/**
* {{_name_}}
*/
-public class {{_name_}} {
+public class {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}} {
/**
* Constructor
*/
- public {{_name_}}() {
+ public {{_expr_:substitute('{{_name_}}', '\w\+', '\u\0', '')}}() {
{{_cursor_}}
}
}
diff --git a/template/java/snip-comment-block.java b/template/java/snip-comment-block.java
new file mode 100644
index 0000000..9b1229e
--- /dev/null
+++ b/template/java/snip-comment-block.java
@@ -0,0 +1,3 @@
+/*
+ * {{_cursor_}}
+ */
diff --git a/template/java/snip-doc-comment.java b/template/java/snip-doc-comment.java
new file mode 100644
index 0000000..5d93c0d
--- /dev/null
+++ b/template/java/snip-doc-comment.java
@@ -0,0 +1,3 @@
+/**
+ * {{_cursor_}}
+ */