From add11c0c40ca605233cc3bdcb21f2fe50ec8eb72 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Fri, 12 Jan 2018 09:31:51 +0900 Subject: [PATCH] Fix #411 initialize snippet --- autoload/neosnippet/parser.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/neosnippet/parser.vim b/autoload/neosnippet/parser.vim index 1ef21a8..119a4b0 100644 --- a/autoload/neosnippet/parser.vim +++ b/autoload/neosnippet/parser.vim @@ -232,8 +232,7 @@ endfunction function! neosnippet#parser#_initialize_snippet(dict, path, line, pattern, name) abort let a:dict.word = substitute(a:dict.word, '\n\+$', '', '') - if a:dict.word !~ '\n' - \ && a:dict.word !~ + if a:dict.word !~ \ neosnippet#get_placeholder_marker_substitute_pattern().'$' \ && a:dict.word !~ \ neosnippet#get_placeholder_marker_substitute_zero_pattern()