mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-25 13:57:20 +08:00
Find snippet more fuzzy. Close #212
This commit is contained in:
1 parent
920904c53b
commit
4d78123db9
1 file changed
+4
@@ -89,6 +89,10 @@ function! emmet#lang#css#parseIntoTree(abbr, type)
|
|||||||
if len(vv) == 0
|
if len(vv) == 0
|
||||||
let pat = '^' . join(split(tag_name, '\zs'), '[^:]\{-}')
|
let pat = '^' . join(split(tag_name, '\zs'), '[^:]\{-}')
|
||||||
let vv = filter(sort(keys(snippets)), 'snippets[v:val] =~ pat')
|
let vv = filter(sort(keys(snippets)), 'snippets[v:val] =~ pat')
|
||||||
|
if len(vv) == 0
|
||||||
|
let pat = '^' . join(split(tag_name, '\zs'), '.\{-}')
|
||||||
|
let vv = filter(sort(keys(snippets)), 'snippets[v:val] =~ pat')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
let minl = -1
|
let minl = -1
|
||||||
for vk in vv
|
for vk in vv
|
||||||
|
|||||||
Reference in new issue
Block a user