diff --git a/ftplugin/eruby/eruby.xpt.vim b/ftplugin/eruby/eruby.xpt.vim index fdd53e4..4220043 100644 --- a/ftplugin/eruby/eruby.xpt.vim +++ b/ftplugin/eruby/eruby.xpt.vim @@ -49,8 +49,7 @@ XSET cursor=Echo('') `:end:^ XPT it hidden " embed-able image tag -XSET image_path=$img_path/ -image_tag('`image_path^`image_file^'`, `opt?^) +image_tag(`image_path^`, `opt?^) XPT image_tag synonym=imt " <%= image_tag... <%= `:it:^ %> diff --git a/ftplugin/html/html.xpt.vim b/ftplugin/html/html.xpt.vim index 3342f1b..dbda115 100644 --- a/ftplugin/html/html.xpt.vim +++ b/ftplugin/html/html.xpt.vim @@ -90,8 +90,10 @@ XPT jscript synonym=js `cursor^ -XPT div wrap=content synonym=span " <$_xSnipName att?>..$_xSnipName> +XPT tagAttr wrap=content hidden " <$_xSnipName att?>..$_xSnipName> XSET content|ontype=html_cont_ontype() +XSET att?=Echo('') +XSET att?|post=Echo(V()=~'\V\^ \$\|att?' ? '' : V()) <`$_xSnipName^` `att?^>`content^^`content^html_cont_helper()^`$_xSnipName^> XPT di wrap=cursor "