Mercurial > vim
comparison runtime/autoload/dist/ft.vim @ 21853:aab3fe874b05 v8.2.1476
patch 8.2.1476: filetype test fails on MS-Windows
Commit: https://github.com/vim/vim/commit/aa9675a61d510c4a56c3845d05b32b1ef780d119
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 17 21:57:09 2020 +0200
patch 8.2.1476: filetype test fails on MS-Windows
Problem: Filetype test fails on MS-Windows.
Solution: Remove "^" from pattern.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Aug 2020 22:00:04 +0200 |
parents | 18a341a4919c |
children | bbca88cd13d5 |
comparison
equal
deleted
inserted
replaced
21852:f6e4e8c9aa83 | 21853:aab3fe874b05 |
---|---|
573 endfunc | 573 endfunc |
574 | 574 |
575 let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*' | 575 let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*' |
576 func dist#ft#FTRules() | 576 func dist#ft#FTRules() |
577 let path = expand('<amatch>:p') | 577 let path = expand('<amatch>:p') |
578 if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' | 578 if path =~ '/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' |
579 setf udevrules | 579 setf udevrules |
580 return | 580 return |
581 endif | 581 endif |
582 if path =~ '^/etc/ufw/' | 582 if path =~ '^/etc/ufw/' |
583 setf conf " Better than hog | 583 setf conf " Better than hog |