mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
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:
parent
04f5062978
commit
411d578137
@ -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\)$'
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user