Karsten Hopp 5f8015
To: vim_dev@googlegroups.com
Karsten Hopp 5f8015
Subject: Patch 7.4.860
Karsten Hopp 5f8015
Fcc: outbox
Karsten Hopp 5f8015
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5f8015
Mime-Version: 1.0
Karsten Hopp 5f8015
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5f8015
Content-Transfer-Encoding: 8bit
Karsten Hopp 5f8015
------------
Karsten Hopp 5f8015
Karsten Hopp 5f8015
Patch 7.4.860
Karsten Hopp 5f8015
Problem:    Filetype detection is outdated.
Karsten Hopp 5f8015
Solution:   Include all recent and not-so-recent changes.
Karsten Hopp 5f8015
Files:      runtime/filetype.vim
Karsten Hopp 5f8015
Karsten Hopp 5f8015
Karsten Hopp 5f8015
*** ../vim-7.4.859/runtime/filetype.vim	2015-09-08 19:10:12.446395189 +0200
Karsten Hopp 5f8015
--- runtime/filetype.vim	2015-09-08 19:08:38.039364393 +0200
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1,7 ****
Karsten Hopp 5f8015
  " Vim support file to detect file types
Karsten Hopp 5f8015
  "
Karsten Hopp 5f8015
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp 5f8015
! " Last Change:	2013 Aug 03
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Listen very carefully, I will say this only once
Karsten Hopp 5f8015
  if exists("did_load_filetypes")
Karsten Hopp 5f8015
--- 1,7 ----
Karsten Hopp 5f8015
  " Vim support file to detect file types
Karsten Hopp 5f8015
  "
Karsten Hopp 5f8015
  " Maintainer:	Bram Moolenaar <Bram@vim.org>
Karsten Hopp 5f8015
! " Last Change:	2015 Sep 08
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Listen very carefully, I will say this only once
Karsten Hopp 5f8015
  if exists("did_load_filetypes")
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 106,111 ****
Karsten Hopp 5f8015
--- 106,114 ----
Karsten Hopp 5f8015
  " Ant
Karsten Hopp 5f8015
  au BufNewFile,BufRead build.xml			setf ant
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Arduino
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.ino,*.pde		setf arduino
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Apache style config file
Karsten Hopp 5f8015
  au BufNewFile,BufRead proftpd.conf*		call s:StarSetf('apachestyle')
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 129,135 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.aml			setf aml
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " APT config file
Karsten Hopp 5f8015
! au BufNewFile,BufRead apt.conf                 setf aptconf
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.aptitude/config       setf aptconf
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/apt/apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
--- 132,138 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.aml			setf aml
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " APT config file
Karsten Hopp 5f8015
! au BufNewFile,BufRead apt.conf		       setf aptconf
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.aptitude/config       setf aptconf
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/apt/apt.conf.d/{[-_[:alnum:]]\+,[-_.[:alnum:]]\+.conf} setf aptconf
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 496,502 ****
Karsten Hopp 5f8015
  	\ endif
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Clojure
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.clj,*.cljs		setf clojure
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Cmake
Karsten Hopp 5f8015
  au BufNewFile,BufRead CMakeLists.txt,*.cmake,*.cmake.in		setf cmake
Karsten Hopp 5f8015
--- 499,505 ----
Karsten Hopp 5f8015
  	\ endif
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Clojure
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.clj,*.cljs,*.cljx,*.cljc		setf clojure
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Cmake
Karsten Hopp 5f8015
  au BufNewFile,BufRead CMakeLists.txt,*.cmake,*.cmake.in		setf cmake
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 527,532 ****
Karsten Hopp 5f8015
--- 530,538 ----
Karsten Hopp 5f8015
  " CUDA  Cumpute Unified Device Architecture
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.cu			setf cuda
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Dockerfile
Karsten Hopp 5f8015
+ au BufNewFile,BufRead Dockerfile		setf dockerfile
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " WildPackets EtherPeek Decoder
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.dcd			setf dcd
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 536,541 ****
Karsten Hopp 5f8015
--- 542,561 ----
Karsten Hopp 5f8015
  " Eterm
Karsten Hopp 5f8015
  au BufNewFile,BufRead *Eterm/*.cfg		setf eterm
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Euphoria 3 or 4
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw  call s:EuphoriaCheck()
Karsten Hopp 5f8015
+ if has("fname_case")
Karsten Hopp 5f8015
+    au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW  call s:EuphoriaCheck()
Karsten Hopp 5f8015
+ endif
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
+ func! s:EuphoriaCheck()
Karsten Hopp 5f8015
+   if exists('g:filetype_euphoria')
Karsten Hopp 5f8015
+     exe 'setf ' . g:filetype_euphoria
Karsten Hopp 5f8015
+   else
Karsten Hopp 5f8015
+     setf euphoria3
Karsten Hopp 5f8015
+   endif
Karsten Hopp 5f8015
+ endfunc
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Lynx config files
Karsten Hopp 5f8015
  au BufNewFile,BufRead lynx.cfg			setf lynx
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 656,677 ****
Karsten Hopp 5f8015
  " Embedix Component Description
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ecd			setf ecd
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Eiffel or Specman
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.e,*.E			call s:FTe()
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Elinks configuration
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/elinks.conf,*/.elinks/elinks.conf	setf elinks
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  func! s:FTe()
Karsten Hopp 5f8015
!   let n = 1
Karsten Hopp 5f8015
!   while n < 100 && n < line("$")
Karsten Hopp 5f8015
!     if getline(n) =~ "^\\s*\\(<'\\|'>\\)\\s*$"
Karsten Hopp 5f8015
!       setf specman
Karsten Hopp 5f8015
!       return
Karsten Hopp 5f8015
!     endif
Karsten Hopp 5f8015
!     let n = n + 1
Karsten Hopp 5f8015
!   endwhile
Karsten Hopp 5f8015
!   setf eiffel
Karsten Hopp 5f8015
  endfunc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " ERicsson LANGuage; Yaws is erlang too
Karsten Hopp 5f8015
--- 676,701 ----
Karsten Hopp 5f8015
  " Embedix Component Description
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ecd			setf ecd
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Eiffel or Specman or Euphoria
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.e,*.E			call s:FTe()
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Elinks configuration
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/elinks.conf,*/.elinks/elinks.conf	setf elinks
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  func! s:FTe()
Karsten Hopp 5f8015
!   if exists('g:filetype_euphoria')
Karsten Hopp 5f8015
!     exe 'setf ' . g:filetype_euphoria
Karsten Hopp 5f8015
!   else
Karsten Hopp 5f8015
!     let n = 1
Karsten Hopp 5f8015
!     while n < 100 && n < line("$")
Karsten Hopp 5f8015
!       if getline(n) =~ "^\\s*\\(<'\\|'>\\)\\s*$"
Karsten Hopp 5f8015
!         setf specman
Karsten Hopp 5f8015
!         return
Karsten Hopp 5f8015
!       endif
Karsten Hopp 5f8015
!       let n = n + 1
Karsten Hopp 5f8015
!     endwhile
Karsten Hopp 5f8015
!     setf eiffel
Karsten Hopp 5f8015
!   endif
Karsten Hopp 5f8015
  endfunc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " ERicsson LANGuage; Yaws is erlang too
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 752,763 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ged,lltxxxxx.txt	setf gedcom
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Git
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.git/COMMIT_EDITMSG	setf gitcommit
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.git/MERGE_MSG		setf gitcommit
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
Karsten Hopp 5f8015
- au BufNewFile,BufRead *.git/modules/*/COMMIT_EDITMSG setf gitcommit
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.git/modules/*/config	setf gitconfig
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.config/git/config	setf gitconfig
Karsten Hopp 5f8015
  au BufNewFile,BufRead git-rebase-todo		setf gitrebase
Karsten Hopp 5f8015
  au BufNewFile,BufRead .msg.[0-9]*
Karsten Hopp 5f8015
        \ if getline(1) =~ '^From.*# This line is ignored.$' |
Karsten Hopp 5f8015
--- 776,789 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ged,lltxxxxx.txt	setf gedcom
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Git
Karsten Hopp 5f8015
! au BufNewFile,BufRead COMMIT_EDITMSG		setf gitcommit
Karsten Hopp 5f8015
! au BufNewFile,BufRead MERGE_MSG			setf gitcommit
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.git/modules/*/config	setf gitconfig
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.config/git/config	setf gitconfig
Karsten Hopp 5f8015
+ if !empty($XDG_CONFIG_HOME)
Karsten Hopp 5f8015
+   au BufNewFile,BufRead $XDG_CONFIG_HOME/git/config	setf gitconfig
Karsten Hopp 5f8015
+ endif
Karsten Hopp 5f8015
  au BufNewFile,BufRead git-rebase-todo		setf gitrebase
Karsten Hopp 5f8015
  au BufNewFile,BufRead .msg.[0-9]*
Karsten Hopp 5f8015
        \ if getline(1) =~ '^From.*# This line is ignored.$' |
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 790,795 ****
Karsten Hopp 5f8015
--- 816,824 ----
Karsten Hopp 5f8015
  " Gnuplot scripts
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.gpi			setf gnuplot
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Go (Google)
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.go			setf go
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " GrADS scripts
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.gs			setf grads
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 952,957 ****
Karsten Hopp 5f8015
--- 981,989 ----
Karsten Hopp 5f8015
  " Inno Setup
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.iss			setf iss
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " J
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.ijs			setf j
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " JAL
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jal,*.JAL		setf jal
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 965,971 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jj,*.jjt		setf javacc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " JavaScript, ECMAScript
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx,*.json   setf javascript
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Java Server Pages
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jsp			setf jsp
Karsten Hopp 5f8015
--- 997,1003 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jj,*.jjt		setf javacc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " JavaScript, ECMAScript
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.js,*.javascript,*.es,*.jsx   setf javascript
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Java Server Pages
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jsp			setf jsp
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 983,994 ****
Karsten Hopp 5f8015
--- 1015,1032 ----
Karsten Hopp 5f8015
  " Jovial
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.jov,*.j73,*.jovial	setf jovial
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " JSON
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.json,*.jsonp		setf json
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Kixtart
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.kix			setf kix
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Kimwitu[++]
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.k			setf kwt
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Kivy
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.kv			setf kivy
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " KDE script
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ks			setf kscript
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1013,1020 ****
Karsten Hopp 5f8015
  " Ld loader
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ld			setf ld
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Lex
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.lex,*.l			setf lex
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Libao
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/libao.conf,*/.libao	setf libao
Karsten Hopp 5f8015
--- 1051,1061 ----
Karsten Hopp 5f8015
  " Ld loader
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ld			setf ld
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Less
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.less			setf less
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Lex
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.lex,*.l,*.lxx,*.l++	setf lex
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Libao
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/libao.conf,*/.libao	setf libao
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1068,1073 ****
Karsten Hopp 5f8015
--- 1109,1117 ----
Karsten Hopp 5f8015
  " Lua
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.lua			setf lua
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Luarocks
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.rockspec		setf lua
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Linden Scripting Language (Second Life)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.lsl			setf lsl
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1112,1121 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.map			setf map
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Markdown
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,README.md  setf markdown
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Mason
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.mason,*.mhtml		setf mason
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Matlab or Objective C
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.m			call s:FTm()
Karsten Hopp 5f8015
--- 1156,1165 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.map			setf map
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Markdown
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md  setf markdown
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Mason
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.mason,*.mhtml,*.comp	setf mason
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Matlab or Objective C
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.m			call s:FTm()
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1124,1130 ****
Karsten Hopp 5f8015
    let n = 1
Karsten Hopp 5f8015
    while n < 10
Karsten Hopp 5f8015
      let line = getline(n)
Karsten Hopp 5f8015
!     if line =~ '^\s*\(#\s*\(include\|import\)\>\|/\*\|//\)'
Karsten Hopp 5f8015
        setf objc
Karsten Hopp 5f8015
        return
Karsten Hopp 5f8015
      endif
Karsten Hopp 5f8015
--- 1168,1174 ----
Karsten Hopp 5f8015
    let n = 1
Karsten Hopp 5f8015
    while n < 10
Karsten Hopp 5f8015
      let line = getline(n)
Karsten Hopp 5f8015
!     if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\|//\)'
Karsten Hopp 5f8015
        setf objc
Karsten Hopp 5f8015
        return
Karsten Hopp 5f8015
      endif
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1169,1174 ****
Karsten Hopp 5f8015
--- 1213,1221 ----
Karsten Hopp 5f8015
  " MGL
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.mgl			setf mgl
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " MIX - Knuth assembly
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.mix,*.mixal		setf mix
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " MMIX or VMS makefile
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.mms			call s:FTmms()
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1201,1208 ****
Karsten Hopp 5f8015
  	\   setf modsim3 |
Karsten Hopp 5f8015
  	\ endif
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Modula 2
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.m2,*.DEF,*.MOD,*.md,*.mi setf modula2
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Modula 3 (.m3, .i3, .mg, .ig)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.[mi][3g]		setf modula3
Karsten Hopp 5f8015
--- 1248,1255 ----
Karsten Hopp 5f8015
  	\   setf modsim3 |
Karsten Hopp 5f8015
  	\ endif
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Modula 2  (.md removed in favor of Markdown)
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.m2,*.DEF,*.MOD,*.mi	setf modula2
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Modula 3 (.m3, .i3, .mg, .ig)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.[mi][3g]		setf modula3
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1219,1226 ****
Karsten Hopp 5f8015
  " Mplayer config
Karsten Hopp 5f8015
  au BufNewFile,BufRead mplayer.conf,*/.mplayer/config	setf mplayerconf
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Moterola S record
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.s19,*.s28,*.s37		setf srec
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Mrxvtrc
Karsten Hopp 5f8015
  au BufNewFile,BufRead mrxvtrc,.mrxvtrc		setf mrxvtrc
Karsten Hopp 5f8015
--- 1266,1273 ----
Karsten Hopp 5f8015
  " Mplayer config
Karsten Hopp 5f8015
  au BufNewFile,BufRead mplayer.conf,*/.mplayer/config	setf mplayerconf
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " Motorola S record
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.s19,*.s28,*.s37,*.mot,*.srec	setf srec
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Mrxvtrc
Karsten Hopp 5f8015
  au BufNewFile,BufRead mrxvtrc,.mrxvtrc		setf mrxvtrc
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1247,1253 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead Mutt{ng,}rc		setf muttrc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Nano
Karsten Hopp 5f8015
! au BufNewFile,BufRead */etc/nanorc,.nanorc	setf nanorc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Nastran input/DMAP
Karsten Hopp 5f8015
  "au BufNewFile,BufRead *.dat			setf nastran
Karsten Hopp 5f8015
--- 1294,1300 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead Mutt{ng,}rc		setf muttrc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Nano
Karsten Hopp 5f8015
! au BufNewFile,BufRead */etc/nanorc,*.nanorc  	setf nanorc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Nastran input/DMAP
Karsten Hopp 5f8015
  "au BufNewFile,BufRead *.dat			setf nastran
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1289,1295 ****
Karsten Hopp 5f8015
    let n = 1
Karsten Hopp 5f8015
    while n < 10
Karsten Hopp 5f8015
      let line = getline(n)
Karsten Hopp 5f8015
!     if line =~ '^\s*\(#\s*\(include\|import\)\>\|/\*\)'
Karsten Hopp 5f8015
        setf objcpp
Karsten Hopp 5f8015
        return
Karsten Hopp 5f8015
      endif
Karsten Hopp 5f8015
--- 1336,1342 ----
Karsten Hopp 5f8015
    let n = 1
Karsten Hopp 5f8015
    while n < 10
Karsten Hopp 5f8015
      let line = getline(n)
Karsten Hopp 5f8015
!     if line =~ '^\s*\(#\s*\(include\|import\)\>\|@import\>\|/\*\)'
Karsten Hopp 5f8015
        setf objcpp
Karsten Hopp 5f8015
        return
Karsten Hopp 5f8015
      endif
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1619,1624 ****
Karsten Hopp 5f8015
--- 1666,1685 ----
Karsten Hopp 5f8015
    au BufNewFile,BufRead *.rnw,*.snw			setf rnoweb
Karsten Hopp 5f8015
  endif
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " R Markdown file
Karsten Hopp 5f8015
+ if has("fname_case")
Karsten Hopp 5f8015
+   au BufNewFile,BufRead *.Rmd,*.rmd,*.Smd,*.smd		setf rmd
Karsten Hopp 5f8015
+ else
Karsten Hopp 5f8015
+   au BufNewFile,BufRead *.rmd,*.smd			setf rmd
Karsten Hopp 5f8015
+ endif
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
+ " R reStructuredText file
Karsten Hopp 5f8015
+ if has("fname_case")
Karsten Hopp 5f8015
+   au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst	setf rrst
Karsten Hopp 5f8015
+ else
Karsten Hopp 5f8015
+   au BufNewFile,BufRead *.rrst,*.srst			setf rrst
Karsten Hopp 5f8015
+ endif
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Rexx, Rebol or R
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.r,*.R			call s:FTr()
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1797,1803 ****
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
Karsten Hopp 5f8015
  " Gentoo ebuilds are actually bash scripts
Karsten Hopp 5f8015
! au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash_profile*,.bash_logout*,*.bash,*.ebuild call SetFileTypeSH("bash")
Karsten Hopp 5f8015
  au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh")
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
--- 1858,1864 ----
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Shell scripts (sh, ksh, bash, bash2, csh); Allow .profile_foo etc.
Karsten Hopp 5f8015
  " Gentoo ebuilds are actually bash scripts
Karsten Hopp 5f8015
! au BufNewFile,BufRead .bashrc*,bashrc,bash.bashrc,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]aliases*,*.bash,*/{,.}bash[_-]completion{,.d,.sh}{,/*},*.ebuild,*.eclass call SetFileTypeSH("bash")
Karsten Hopp 5f8015
  au BufNewFile,BufRead .kshrc*,*.ksh call SetFileTypeSH("ksh")
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/profile,.profile*,*.sh,*.env call SetFileTypeSH(getline(1))
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 1967,1972 ****
Karsten Hopp 5f8015
--- 2028,2037 ----
Karsten Hopp 5f8015
      setf conf  " Better than hog
Karsten Hopp 5f8015
      return
Karsten Hopp 5f8015
    endif
Karsten Hopp 5f8015
+   if path =~ '^/\(etc\|usr/share\)/polkit-1/rules\.d'
Karsten Hopp 5f8015
+     setf javascript
Karsten Hopp 5f8015
+     return
Karsten Hopp 5f8015
+   endif
Karsten Hopp 5f8015
    try
Karsten Hopp 5f8015
      let config_lines = readfile('/etc/udev/udev.conf')
Karsten Hopp 5f8015
    catch /^Vim\%((\a\+)\)\=:E484/
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2058,2071 ****
Karsten Hopp 5f8015
  " SVG (Scalable Vector Graphics)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.svg			setf svg
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " If the file has an extension of 't' and is in a directory 't' then it is
Karsten Hopp 5f8015
! " almost certainly a Perl test file.
Karsten Hopp 5f8015
  " If the first line starts with '#' and contains 'perl' it's probably a Perl
Karsten Hopp 5f8015
  " file.
Karsten Hopp 5f8015
  " (Slow test) If a file contains a 'use' statement then it is almost certainly
Karsten Hopp 5f8015
  " a Perl file.
Karsten Hopp 5f8015
  func! s:FTperl()
Karsten Hopp 5f8015
!   if expand("%:e") == 't' && expand("%:p:h:t") == 't'
Karsten Hopp 5f8015
      setf perl
Karsten Hopp 5f8015
      return 1
Karsten Hopp 5f8015
    endif
Karsten Hopp 5f8015
--- 2123,2137 ----
Karsten Hopp 5f8015
  " SVG (Scalable Vector Graphics)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.svg			setf svg
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
! " If the file has an extension of 't' and is in a directory 't' or 'xt' then
Karsten Hopp 5f8015
! " it is almost certainly a Perl test file.
Karsten Hopp 5f8015
  " If the first line starts with '#' and contains 'perl' it's probably a Perl
Karsten Hopp 5f8015
  " file.
Karsten Hopp 5f8015
  " (Slow test) If a file contains a 'use' statement then it is almost certainly
Karsten Hopp 5f8015
  " a Perl file.
Karsten Hopp 5f8015
  func! s:FTperl()
Karsten Hopp 5f8015
!   let dirname = expand("%:p:h:t")
Karsten Hopp 5f8015
!   if expand("%:e") == 't' && (dirname == 't' || dirname == 'xt')
Karsten Hopp 5f8015
      setf perl
Karsten Hopp 5f8015
      return 1
Karsten Hopp 5f8015
    endif
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2092,2098 ****
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Task
Karsten Hopp 5f8015
  au BufRead,BufNewFile {pending,completed,undo}.data  setf taskdata
Karsten Hopp 5f8015
! au BufRead,BufNewFile *.task                    setf taskedit
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Tcl (JACL too)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.tcl,*.tk,*.itcl,*.itk,*.jacl	setf tcl
Karsten Hopp 5f8015
--- 2158,2164 ----
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Task
Karsten Hopp 5f8015
  au BufRead,BufNewFile {pending,completed,undo}.data  setf taskdata
Karsten Hopp 5f8015
! au BufRead,BufNewFile *.task			setf taskedit
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Tcl (JACL too)
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.tcl,*.tk,*.itcl,*.itk,*.jacl	setf tcl
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2103,2108 ****
Karsten Hopp 5f8015
--- 2169,2177 ----
Karsten Hopp 5f8015
  " Telix Salt
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.slt			setf tsalt
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Tera Term Language
Karsten Hopp 5f8015
+ au BufRead,BufNewFile *.ttl			setf teraterm
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Terminfo
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.ti			setf terminfo
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2217,2228 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/updatedb.conf	setf updatedb
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Upstart (init(8)) config files
Karsten Hopp 5f8015
! au BufNewFile,BufRead */usr/share/upstart/*.conf               setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */usr/share/upstart/*.override           setf upstart
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/init/*.conf,*/etc/init/*.override  setf upstart
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.init/*.conf,*/.init/*.override        setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */.config/upstart/*.conf                 setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */.config/upstart/*.override             setf upstart
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Vera
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.vr,*.vri,*.vrh		setf vera
Karsten Hopp 5f8015
--- 2286,2297 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/updatedb.conf	setf updatedb
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Upstart (init(8)) config files
Karsten Hopp 5f8015
! au BufNewFile,BufRead */usr/share/upstart/*.conf	       setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */usr/share/upstart/*.override	       setf upstart
Karsten Hopp 5f8015
  au BufNewFile,BufRead */etc/init/*.conf,*/etc/init/*.override  setf upstart
Karsten Hopp 5f8015
  au BufNewFile,BufRead */.init/*.conf,*/.init/*.override        setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */.config/upstart/*.conf		       setf upstart
Karsten Hopp 5f8015
! au BufNewFile,BufRead */.config/upstart/*.override	       setf upstart
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Vera
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.vr,*.vri,*.vrh		setf vera
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2233,2238 ****
Karsten Hopp 5f8015
--- 2302,2310 ----
Karsten Hopp 5f8015
  " Verilog-AMS HDL
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.va,*.vams		setf verilogams
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " SystemVerilog
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.sv,*.svh		setf systemverilog
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " VHDL
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.hdl,*.vhd,*.vhdl,*.vbe,*.vst  setf vhdl
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.vhdl_[0-9]*		call s:StarSetf('vhdl')
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2263,2268 ****
Karsten Hopp 5f8015
--- 2335,2343 ----
Karsten Hopp 5f8015
  " VRML V1.0c
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.wrl			setf vrml
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
+ " Vroom (vim testing and executable documentation)
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.vroom			setf vroom
Karsten Hopp 5f8015
+ 
Karsten Hopp 5f8015
  " Webmacro
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.wm			setf webmacro
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2405,2411 ****
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.xsl,*.xslt		setf xslt
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Yacc
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.yy			setf yacc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Yacc or racc
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.y			call s:FTy()
Karsten Hopp 5f8015
--- 2480,2486 ----
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.xsl,*.xslt		setf xslt
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Yacc
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.yy,*.yxx,*.y++		setf yacc
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Yacc or racc
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.y			call s:FTy()
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2436,2441 ****
Karsten Hopp 5f8015
--- 2511,2518 ----
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Zimbu
Karsten Hopp 5f8015
  au BufNewFile,BufRead *.zu			setf zimbu
Karsten Hopp 5f8015
+ " Zimbu Templates
Karsten Hopp 5f8015
+ au BufNewFile,BufRead *.zut			setf zimbutempl
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Zope
Karsten Hopp 5f8015
  "   dtml (zope dynamic template markup language), pt (zope page template),
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 2630,2636 ****
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Plain text files, needs to be far down to not override others.  This avoids
Karsten Hopp 5f8015
  " the "conf" type being used if there is a line starting with '#'.
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.txt,*.text		setf text
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Use the filetype detect plugins.  They may overrule any of the previously
Karsten Hopp 5f8015
--- 2707,2713 ----
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Plain text files, needs to be far down to not override others.  This avoids
Karsten Hopp 5f8015
  " the "conf" type being used if there is a line starting with '#'.
Karsten Hopp 5f8015
! au BufNewFile,BufRead *.txt,*.text,README	setf text
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  
Karsten Hopp 5f8015
  " Use the filetype detect plugins.  They may overrule any of the previously
Karsten Hopp 5f8015
*** ../vim-7.4.859/src/version.c	2015-09-08 19:10:12.450395148 +0200
Karsten Hopp 5f8015
--- src/version.c	2015-09-08 19:12:11.161176150 +0200
Karsten Hopp 5f8015
***************
Karsten Hopp 5f8015
*** 743,744 ****
Karsten Hopp 5f8015
--- 743,746 ----
Karsten Hopp 5f8015
  {   /* Add new patch number below this line */
Karsten Hopp 5f8015
+ /**/
Karsten Hopp 5f8015
+     860,
Karsten Hopp 5f8015
  /**/
Karsten Hopp 5f8015
Karsten Hopp 5f8015
-- 
Karsten Hopp 5f8015
ARTHUR: Old woman!
Karsten Hopp 5f8015
DENNIS: Man!
Karsten Hopp 5f8015
ARTHUR: Man.  I'm sorry.  Old man, What knight live in that castle over there?
Karsten Hopp 5f8015
DENNIS: I'm thirty-seven.
Karsten Hopp 5f8015
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp 5f8015
Karsten Hopp 5f8015
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5f8015
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5f8015
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5f8015
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///