adding new stuff
This commit is contained in:
parent
f84d7183aa
commit
9ef8a96f9a
1580 changed files with 0 additions and 0 deletions
104
plugins/bundle/xptemplate/ftplugin/ps1/ps1.xpt.vim
Normal file
104
plugins/bundle/xptemplate/ftplugin/ps1/ps1.xpt.vim
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
XPTemplate priority=lang
|
||||
|
||||
|
||||
XPTinclude
|
||||
\ _common/common
|
||||
|
||||
" ========================= Function and Variables =============================
|
||||
|
||||
" ================================= Snippets ===================================
|
||||
XPT cmdlet " cmdlet ..-.. {}
|
||||
Cmdlet `verb^-`noun^
|
||||
{
|
||||
`Param...{{^Param(
|
||||
`^
|
||||
)`}}^
|
||||
`Begin...{{^Begin
|
||||
{
|
||||
}`}}^
|
||||
Process
|
||||
{
|
||||
}
|
||||
`End...{{^End
|
||||
{
|
||||
}`}}^
|
||||
}
|
||||
|
||||
|
||||
XPT if wrap=code " if ( .. ) { .. } ...
|
||||
if ( `cond^ )
|
||||
{
|
||||
`code^
|
||||
}`
|
||||
`...^
|
||||
elseif ( `cond2^ )
|
||||
{
|
||||
`body^
|
||||
}`
|
||||
`...^`
|
||||
`else...{{^
|
||||
else
|
||||
{
|
||||
`body^
|
||||
}`}}^
|
||||
|
||||
|
||||
XPT fun " function ..(..) { .. }
|
||||
function `funName^( `params^ )
|
||||
{
|
||||
`cursor^
|
||||
}
|
||||
|
||||
|
||||
XPT function " function { BEGIN PROCESS END }
|
||||
function `funName^( `params^ )
|
||||
{
|
||||
`Begin...{{^Begin
|
||||
{
|
||||
`^
|
||||
}`}}^
|
||||
`Process...{{^Process
|
||||
{
|
||||
`^
|
||||
}`}}^
|
||||
`End...{{^End
|
||||
{
|
||||
`^
|
||||
}`}}^
|
||||
}
|
||||
|
||||
|
||||
XPT foreach " foreach (.. in ..)
|
||||
foreach ($`var^ in `other^)
|
||||
{ `cursor^ }
|
||||
|
||||
|
||||
XPT switch " switch (){ .. {..} }
|
||||
switch `option^^ (`what^)
|
||||
{
|
||||
`pattern^ { `action^ }`...^
|
||||
`pattern^ { `action^ }`...^
|
||||
`Default...{{^Default { `action^ }`}}^
|
||||
}
|
||||
|
||||
|
||||
XPT trap " trap [..] { .. }
|
||||
trap [`Exception^]
|
||||
{
|
||||
`body^
|
||||
}
|
||||
|
||||
|
||||
XPT for " for (..;..;++)
|
||||
for ($`var^ = `init^; $`var^ -ge `val^; $`var^--)
|
||||
{
|
||||
`cursor^
|
||||
}
|
||||
|
||||
|
||||
XPT forr " for (..;..;--)
|
||||
for ($`var^ = `init^; $`var^ -ge `val^; $`var^--)
|
||||
{
|
||||
`cursor^
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue