calculate 'indentation' from shiftwidth. close #78

This commit is contained in:
mattn
2012-06-04 16:37:24 +09:00
parent 3d3ae065eb
commit d3f4db7367
4 changed files with 23 additions and 22 deletions

View File

@@ -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 }

View File

@@ -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)