Merge pull request #64 from erikw/master

Java and C++ snippets
This commit is contained in:
Honza Pokorny 2012-01-01 09:00:47 -08:00
commit df863d15fd
2 changed files with 22 additions and 0 deletions

View File

@ -56,3 +56,11 @@ snippet mfun
${4:void} ${1:`Filename('$1', 'ClassName')`}::${2:memberFunction}(${3}) {
${5:return};
}
snippet scout
std::cout << ${1} << std::endl;
snippet cout
cout << ${1} << endl;
snippet scin
std::cin >> ${1};
snippet cin
cin >> ${1};

View File

@ -92,6 +92,8 @@ snippet tryf
}
snippet rst
ResultSet ${1:rst}${2: = null}${3};${4}
snippet @au
@author `system("grep \`id -un\` /etc/passwd | cut -d \":\" -f5")`
snippet mm
@ManyToMany
${1}
@ -141,3 +143,15 @@ snippet unless
(unless=${1:param});${2}
snippet warn
Logger.warn(${1:param});${2}
snippet sysout
System.out.println(${1});
snippet syserr
System.err.println(${1});
snippet /*
/*
* ${1}
*/
snippet /**
/**
* ${1}
*/