syntax fix for subdirs

This commit is contained in:
Sergey Vlasov 2016-09-07 11:16:45 +03:00
parent ff10513cdd
commit b6ef2333b4

View File

@ -5,7 +5,7 @@ if exists("b:current_syntax")
finish finish
endif 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") \ && !exists("b:ultisnips_override_snipmate")
" this appears to be a snipmate file " this appears to be a snipmate file
" It's in a directory called snippets/ and there's no endsnippet keyword " It's in a directory called snippets/ and there's no endsnippet keyword