[packages/vim-syntax-nginx] Widen the scope of filetype matches

glen glen at pld-linux.org
Sun May 3 20:57:04 CEST 2015


commit f2945fff1ef959e3f67ea4a79cf0bf1a19feb076
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 3 21:56:24 2015 +0300

    Widen the scope of filetype matches
    
    The original pattern was fairly limited - widen it to support a
    SYSCONFDIR under /usr/local/etc. Also modify the pattern to look in
    subdirs of /etc/nginx/ and /usr/local/etc/nginx/
    
    similarily to
    https://github.com/glensc/vim-syntax-lighttpd/commit/a8175430f4fe82d617699c701d1081144c2170f9

 ftdetect.vim | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/ftdetect.vim b/ftdetect.vim
index d1d988b..62cbd88 100644
--- a/ftdetect.vim
+++ b/ftdetect.vim
@@ -1 +1,3 @@
-au BufNewFile,BufRead /etc/nginx/*.conf,nginx.conf set filetype=nginx
+" Vim syntax file
+" Language: nginx.conf
+au BufNewFile,BufRead /etc/nginx/**.conf,/usr/local/etc/nginx/**.conf,nginx*.conf set filetype=nginx
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim-syntax-nginx.git/commitdiff/f2945fff1ef959e3f67ea4a79cf0bf1a19feb076



More information about the pld-cvs-commit mailing list