summaryrefslogtreecommitdiffstats
path: root/runtime/autoload
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-09 21:05:31 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-09 21:05:31 +0100
commitcef7322d8a902b4655ed861489c4e798672074f0 (patch)
tree1a9a942bc21c961d78fd4ad11d08790220cf5f05 /runtime/autoload
parent851ee6c3da5fd726d92e1e3300d7e5e2e8b907c5 (diff)
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/autoload')
-rw-r--r--runtime/autoload/filetype.vim1
1 files changed, 1 insertions, 0 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\)$'