1
0
forked from aniani/vim

patch 8.2.1476: filetype test fails on MS-Windows

Problem:    Filetype test fails on MS-Windows.
Solution:   Remove "^" from pattern.
This commit is contained in:
Bram Moolenaar 2020-08-17 21:57:09 +02:00
parent 36967b32fd
commit aa9675a61d
2 changed files with 3 additions and 1 deletions

View File

@ -575,7 +575,7 @@ endfunc
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
func dist#ft#FTRules()
let path = expand('<amatch>:p')
if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
if path =~ '/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$'
setf udevrules
return
endif

View File

@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1476,
/**/
1475,
/**/