diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-09 21:05:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-09 21:05:31 +0100 |
commit | cef7322d8a902b4655ed861489c4e798672074f0 (patch) | |
tree | 1a9a942bc21c961d78fd4ad11d08790220cf5f05 /runtime | |
parent | 851ee6c3da5fd726d92e1e3300d7e5e2e8b907c5 (diff) | |
download | vim-git-cef7322d8a902b4655ed861489c4e798672074f0.tar.gz |
patch 8.0.1282: script-local variable defined in the wrong scriptv8.0.1282
Problem: script-local variable defined in the wrong script
Solution: Move variable to autoload/filetype.vim.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/autoload/filetype.vim | 1 | ||||
-rw-r--r-- | runtime/filetype.vim | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/filetype.vim b/runtime/autoload/filetype.vim index ffca01ed0..66e64b29d 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 dff2b8960..55f99fc10 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1542,7 +1542,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 |