diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-17 21:17:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-17 21:17:25 +0200 |
commit | 624b6eaf20f3e8c669425b6a32f17fb9ec2ebbd2 (patch) | |
tree | 2966d3f125296c7bc4aba597227fee4d171110ea /runtime | |
parent | 021bda56710d98c09a6b35610a476ab2dd8c58ad (diff) | |
download | vim-git-624b6eaf20f3e8c669425b6a32f17fb9ec2ebbd2.tar.gz |
patch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrulesv8.2.1474
Problem: /usr/lib/udef/rules.d not recognized as udevrules.
Solution: Adjust match pattern. (Haochen Tong, closes 36722)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/dist/ft.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 844a5ad73..84691b1e1 100644 --- a/runtime/autoload/dist/ft.vim +++ b/runtime/autoload/dist/ft.vim @@ -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\|lib/udev/\%(rules\.d/\)\=.*\.rules\)$' + if path =~ '^/\(etc/udev/\%(rules\.d/\)\=.*\.rules\|\%(usr/\)\=lib/udev/\%(rules\.d/\)\=.*\.rules\)$' setf udevrules return endif |