Improve include implementation
This commit is contained in:
parent
457d5c8939
commit
4583b46376
@ -83,13 +83,11 @@ function! s:parse(snippets_file) "{{{
|
|||||||
" Ignore.
|
" Ignore.
|
||||||
elseif line =~ '^include'
|
elseif line =~ '^include'
|
||||||
" Include snippets file.
|
" Include snippets file.
|
||||||
let filename = matchstr(line, '^include\s\+\zs.*$')
|
for file in split(globpath(join(
|
||||||
|
|
||||||
for snippets_file in split(globpath(join(
|
|
||||||
\ neosnippet#helpers#get_snippets_directory(), ','),
|
\ neosnippet#helpers#get_snippets_directory(), ','),
|
||||||
\ filename), '\n')
|
\ matchstr(line, '^include\s\+\zs.*$')), '\n')
|
||||||
let snippets = extend(snippets,
|
let snippets = extend(snippets,
|
||||||
\ neosnippet#parser#_parse_snippets(snippets_file))
|
\ neosnippet#parser#_parse_snippets(file))
|
||||||
endfor
|
endfor
|
||||||
elseif line =~ '^source'
|
elseif line =~ '^source'
|
||||||
" Source Vim script file.
|
" Source Vim script file.
|
||||||
|
Loading…
Reference in New Issue
Block a user