diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-03 15:43:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-03 15:43:15 +0100 |
commit | 8fd2ffc530f8f01afac53903e6ff95867afd94d7 (patch) | |
tree | 3d2f214a1486524767c31d68676d58c53c73bcbc /runtime | |
parent | 8dce6c54c81f13582617db3127071b3436b8163b (diff) |
patch 8.0.1457: clojure now supports a shebang linev8.0.1457
Problem: Clojure now supports a shebang line.
Solution: Detect clojure script from the shebang line. (David Burgin,
closes #2570)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/scripts.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 71e3f48bdf..fe05d265b3 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2017 Nov 11 +" Last change: 2018 Feb 03 " This file is called by an autocommand for every file that has just been " loaded into a buffer. It checks if the type of file can be recognized by @@ -104,6 +104,10 @@ if s:line1 =~# "^#!" elseif s:name =~# '^pike\%(\>\|[0-9]\)' set ft=pike + " Pike + elseif s:name =~# '^pike\%(\>\|[0-9]\)' + set ft=pike + " Lua elseif s:name =~# 'lua' set ft=lua @@ -176,6 +180,10 @@ if s:line1 =~# "^#!" elseif s:name =~# 'scala\>' set ft=scala + " Clojure + elseif s:name =~# 'clojure' + set ft=clojure + endif unlet s:name |