- Fixed convert description.
This commit is contained in:
parent
96cf9fd8ad
commit
2a2be48c3b
@ -353,14 +353,12 @@ function! s:parse_snippets_file(snippets, snippets_file)"{{{
|
||||
" Fall back to using the name and description (abbr) combined.
|
||||
" SnipMate snippets may have duplicate names, but different
|
||||
" descriptions (abbrs).
|
||||
if has_key(dup_check, snippet_dict.name)
|
||||
let description = matchstr(line, '^snippet\s\+\zs.*$')
|
||||
if description !=# snippet_dict.name
|
||||
" Convert description.
|
||||
let snippet_dict.name =
|
||||
\ substitute(description, '\W\+', '_', 'g')
|
||||
endif
|
||||
endif
|
||||
|
||||
" Collect the description (abbr) of the snippet, if set on snippet line.
|
||||
" This is for compatibility with SnipMate-style snippets.
|
||||
|
@ -640,6 +640,7 @@ CHANGELOG *neosnippet-changelog*
|
||||
2012-11-01
|
||||
- Fixed snippet mirror behavior.
|
||||
- Fixed substitute of target.
|
||||
- Fixed convert description.
|
||||
|
||||
2012-10-31
|
||||
- Improved indent_snippet().
|
||||
|
Loading…
Reference in New Issue
Block a user