0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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 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

@@ -1542,7 +1542,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

View File

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