mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-09 03:54:47 +08:00
enable haml filter.
This commit is contained in:
@@ -1025,6 +1025,9 @@ function! s:zen_toString(...)
|
|||||||
endif
|
endif
|
||||||
if a:0 > 3
|
if a:0 > 3
|
||||||
let filter = a:4
|
let filter = a:4
|
||||||
|
if filter == 'haml'
|
||||||
|
let type = 'haml'
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
let filter = 'html'
|
let filter = 'html'
|
||||||
endif
|
endif
|
||||||
@@ -1138,7 +1141,6 @@ function! s:zen_toString(...)
|
|||||||
|
|
||||||
let inner = ''
|
let inner = ''
|
||||||
if len(current.child) == 1 && len(current.child[0].name) == 0
|
if len(current.child) == 1 && len(current.child[0].name) == 0
|
||||||
"let str .= s:zen_toString(current.child[0], type, inline, filter)
|
|
||||||
let lines = split(current.child[0].value[1:-2], "\n")
|
let lines = split(current.child[0].value[1:-2], "\n")
|
||||||
let str .= " " . lines[0]
|
let str .= " " . lines[0]
|
||||||
for line in lines[1:]
|
for line in lines[1:]
|
||||||
|
|||||||
Reference in New Issue
Block a user