mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-01 19:42:30 +01:00
fixed objc/cpp command-based snippets
This commit is contained in:
@@ -2,8 +2,7 @@ if !exists('loaded_snips') || exists('s:did_php_snips')
|
||||
fini
|
||||
en
|
||||
let s:did_php_snips = 1
|
||||
let ft = &ft
|
||||
let &ft ='php'
|
||||
let snippet_filetype = 'php'
|
||||
|
||||
exe "Snipp php <?php\n${1}\n?>"
|
||||
exe 'Snipp ec echo "${1:string}"${2};'
|
||||
@@ -67,4 +66,3 @@ exe "Snipp foreach foreach ($${1:variable} as $${2:key}) {\n\t${3:// code...}\n}
|
||||
exe "Snipp fun ${1:public }function ${2:FunctionName}(${3})\n{\n\t${4:// code...}\n}"
|
||||
" $... = array (...)
|
||||
exe "Snipp array $${1:arrayName} = array('${2}' => ${3});${4}"
|
||||
let &ft = ft
|
||||
|
||||
Reference in New Issue
Block a user