patch 8.0.1282: script-local variable defined in the wrong script

Problem:    script-local variable defined in the wrong script
Solution:   Move variable to autoload/filetype.vim.
This commit is contained in:
Bram Moolenaar
2017-11-09 21:05:31 +01:00
parent 851ee6c3da
commit cef7322d8a
3 changed files with 3 additions and 1 deletions

View File

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