This commit is contained in:
Shougo Matsushita 2013-02-16 13:15:46 +09:00
commit 24dd5cff66
2 changed files with 22 additions and 4 deletions

View File

@ -1,14 +1,20 @@
snippet function
abbr function () {}
abbr public function () {}
${1:public }function ${2:#:FunctionName}(${3})
{
${4:TARGET}
}
snippet function_literal
options word
abbr function () {}
function (${1})${2: use } {
${3:TARGET}
}
snippet php
<?php
${1:TARGET}
?>
snippet pecho
<?php echo ${1} ?>${0}
@ -109,11 +115,11 @@ snippet c
* $0
*/
snippet class
snippet class_with_constructor
/**
* ${1}
*/
class ${2:#:ClassName}${3:#:extends}}
class ${2:#:ClassName}${3:#:extends}
{
$5
function ${4:__construct}(${5:#:argument})
@ -122,6 +128,11 @@ snippet class
}
}
snippet class
class ${2:#:ClassName} {
${0:TARGET}
}
snippet def
${1}defined('${2}')${0}
@ -147,6 +158,10 @@ snippet if
${0:TARGET}
}
snippet var_dump
options head
var_dump(${0:TARGET});
snippet echo
echo "${1:#:string}"${0};

View File

@ -721,6 +721,9 @@ CHANGELOG *neosnippet-changelog*
2013-02-16
- Added sh snippet.
2013-02-03
- Improved php snippets.
2013-02-01
- Added vim snippets.