Merge pull request #747 from noscript/master

syntax fix for subdirs
This commit is contained in:
Stanislav Seletskiy 2016-09-07 18:46:37 +07:00 committed by GitHub
commit dfde9b0032

View File

@ -5,7 +5,7 @@ if exists("b:current_syntax")
finish
endif
if expand("%:p:h:t") == "snippets" && search("^endsnippet", "nw") == 0
if expand("%:p:h") =~ "snippets" && search("^endsnippet", "nw") == 0
\ && !exists("b:ultisnips_override_snipmate")
" this appears to be a snipmate file
" It's in a directory called snippets/ and there's no endsnippet keyword