dot_files/vim-plugins/bundle/xptemplate/ftplugin/_condition/ecma.xpt.vim
2017-07-09 00:26:06 +03:00

28 lines
672 B
VimL

XPTemplate priority=spec
let s:f = g:XPTfuncs()
XPTvar $TRUE true
XPTvar $FALSE false
XPTvar $NULL null
XPTvar $UNDEFINED undefined
XPTvar $VOID_LINE /* void */;
XPTvar $BRif \n
XPTinclude
\ _common/common
\ _condition/c.like
" ========================= Function and Variables =============================
" ================================= Snippets ===================================
XPT ifu alias=if " if ($UNDEFINED == ..) {..} else...
XSET condition=Embed('`$UNDEFINED^`$SPop^==`$SPop^`var^')
XPT ifnu alias=if " if ($UNDEFINED == ..) {..} else...
XSET condition=Embed('`$UNDEFINED^`$SPop^!=`$SPop^`var^')