aboutsummaryrefslogtreecommitdiff
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-12-17 05:06:07 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-12-17 05:06:07 -0500
commit5b30ba7b999dc6af7e429c9a25167515f937cd66 (patch)
tree409a298e3a3c44fe83de6daffcd50a29211b9cfb /runtime/filetype.vim
parent7581046b606d455ab0ff03ac74e517a2ae310594 (diff)
parent1f27ccb77fa97a4c69287af6c97dd3d65bd57965 (diff)
downloadrneovim-5b30ba7b999dc6af7e429c9a25167515f937cd66.tar.gz
rneovim-5b30ba7b999dc6af7e429c9a25167515f937cd66.tar.bz2
rneovim-5b30ba7b999dc6af7e429c9a25167515f937cd66.zip
Merge pull request #3859 from justinmk/vim-83caecf
vim-patch:83caecf
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index b06e702637..c9686b8502 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2015 Jan 07
+" Last Change: 2015 Jan 14
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -2032,6 +2032,10 @@ func! s:FTRules()
setf conf " Better than hog
return
endif
+ if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d'
+ setf javascript
+ return
+ endif
try
let config_lines = readfile('/etc/udev/udev.conf')
catch /^Vim\%((\a\+)\)\=:E484/