vim-patch:8.0.1282

Problem:    script-local variable defined in the wrong script
Solution:   Move variable to autoload/filetype.vim.

cef7322d8a
This commit is contained in:
Justin M. Keyes 2017-11-10 01:56:32 +01:00
parent 04f5062978
commit 411d578137
2 changed files with 1 additions and 1 deletions

View File

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

View File

@ -1537,7 +1537,6 @@ au BufNewFile,BufRead *.mib,*.my setf mib
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
au BufNewFile,BufRead *.rules call filetype#FTRules() au BufNewFile,BufRead *.rules call filetype#FTRules()
let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
" Spec (Linux RPM) " Spec (Linux RPM)
au BufNewFile,BufRead *.spec setf spec au BufNewFile,BufRead *.spec setf spec