aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-10 01:56:32 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-04-02 23:59:48 +0200
commit411d57813740328dbdce3ae237cf68a90ce7ac0e (patch)
treebe523117e65636f960a641a221a3ecd0eb80eb8b
parent04f506297862d1993b2680170b5dacdf137228d9 (diff)
downloadrneovim-411d57813740328dbdce3ae237cf68a90ce7ac0e.tar.gz
rneovim-411d57813740328dbdce3ae237cf68a90ce7ac0e.tar.bz2
rneovim-411d57813740328dbdce3ae237cf68a90ce7ac0e.zip
vim-patch:8.0.1282
Problem: script-local variable defined in the wrong script Solution: Move variable to autoload/filetype.vim. https://github.com/vim/vim/commit/cef7322d8a902b4655ed861489c4e798672074f0
-rw-r--r--runtime/autoload/filetype.vim1
-rw-r--r--runtime/filetype.vim1
2 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/filetype.vim b/runtime/autoload/filetype.vim
index ffca01ed0c..66e64b29d8 100644
--- a/runtime/autoload/filetype.vim
+++ b/runtime/autoload/filetype.vim
@@ -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\)$'
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index c2012c05ec..6996db017d 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1537,7 +1537,6 @@ au BufNewFile,BufRead *.mib,*.my setf mib
au BufNewFile,BufRead *.hog,snort.conf,vision.conf setf hog
au BufNewFile,BufRead *.rules call filetype#FTRules()
-let s:ft_rules_udev_rules_pattern = '^\s*\cudev_rules\s*=\s*"\([^"]\{-1,}\)/*".*'
" Spec (Linux RPM)
au BufNewFile,BufRead *.spec setf spec