forked from VimPlug/emmet-vim
use default type for install to ~/.vim/plugin/zencoding.vim
This commit is contained in:
@@ -880,10 +880,10 @@ endfunction
|
|||||||
function! s:zen_parseIntoTree(abbr, type)
|
function! s:zen_parseIntoTree(abbr, type)
|
||||||
let abbr = a:abbr
|
let abbr = a:abbr
|
||||||
let type = a:type
|
let type = a:type
|
||||||
if len(type) == 0 | let type = 'html' | endif
|
|
||||||
if !has_key(s:zen_settings, type)
|
if !has_key(s:zen_settings, type)
|
||||||
return { 'child': [] }
|
let type = 'html'
|
||||||
endif
|
endif
|
||||||
|
if len(type) == 0 | let type = 'html' | endif
|
||||||
|
|
||||||
if has_key(s:zen_settings[type], 'indentation')
|
if has_key(s:zen_settings[type], 'indentation')
|
||||||
let indent = s:zen_settings[type].indentation
|
let indent = s:zen_settings[type].indentation
|
||||||
@@ -1068,6 +1068,9 @@ function! s:zen_toString(...)
|
|||||||
else
|
else
|
||||||
let type = ''
|
let type = ''
|
||||||
endif
|
endif
|
||||||
|
if !has_key(s:zen_settings, type)
|
||||||
|
let type = 'html'
|
||||||
|
endif
|
||||||
if len(type) == 0 | let type = 'html' | endif
|
if len(type) == 0 | let type = 'html' | endif
|
||||||
if a:0 > 2
|
if a:0 > 2
|
||||||
let inline = a:3
|
let inline = a:3
|
||||||
|
|||||||
Reference in New Issue
Block a user