forked from VimPlug/emmet-vim
@@ -143,7 +143,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
|
|
||||||
if empty(tag_name)
|
if empty(tag_name)
|
||||||
let pname = len(parent.child) > 0 ? parent.child[0].name : ''
|
let pname = len(parent.child) > 0 ? parent.child[0].name : ''
|
||||||
if !empty(pname) && has_key(pmap, pname)
|
if !empty(pname) && has_key(pmap, pname) && custom == ''
|
||||||
let tag_name = pmap[pname]
|
let tag_name = pmap[pname]
|
||||||
elseif !empty(pname) && index(inlineLevel, pname) > -1
|
elseif !empty(pname) && index(inlineLevel, pname) > -1
|
||||||
let tag_name = 'span'
|
let tag_name = 'span'
|
||||||
@@ -206,6 +206,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
let current.snippet = snippet
|
let current.snippet = snippet
|
||||||
break
|
break
|
||||||
elseif custom =~# k
|
elseif custom =~# k
|
||||||
|
let g:hoge = current
|
||||||
let snippet = '${' . custom . '}'
|
let snippet = '${' . custom . '}'
|
||||||
let current.snippet = '${' . custom . '}'
|
let current.snippet = '${' . custom . '}'
|
||||||
if current.name != ''
|
if current.name != ''
|
||||||
|
|||||||
Reference in New Issue
Block a user