forked from VimPlug/emmet-vim
calculate 'indentation' from shiftwidth. close #78
This commit is contained in:
@@ -7,12 +7,7 @@ function! zencoding#lang#css#parseIntoTree(abbr, type)
|
||||
let type = a:type
|
||||
|
||||
let settings = zencoding#getSettings()
|
||||
|
||||
if has_key(settings[type], 'indentation')
|
||||
let indent = settings[type].indentation
|
||||
else
|
||||
let indent = settings.indentation
|
||||
endif
|
||||
let indent = zencoding#getIndentation(type)
|
||||
|
||||
let root = { 'name': '', 'attr': {}, 'child': [], 'snippet': '', 'multiplier': 1, 'parent': {}, 'value': '', 'pos': 0, 'important': 0 }
|
||||
|
||||
|
||||
@@ -41,12 +41,7 @@ function! zencoding#lang#html#parseIntoTree(abbr, type)
|
||||
if len(type) == 0 | let type = 'html' | endif
|
||||
|
||||
let settings = zencoding#getSettings()
|
||||
|
||||
if has_key(settings[type], 'indentation')
|
||||
let indent = settings[type].indentation
|
||||
else
|
||||
let indent = settings.indentation
|
||||
endif
|
||||
let indent = zencoding#getIndentation(type)
|
||||
|
||||
" try 'foo' to (foo-x)
|
||||
let rabbr = zencoding#getExpandos(type, abbr)
|
||||
|
||||
Reference in New Issue
Block a user