diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-18 21:18:55 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-10-27 19:53:17 -0400 |
commit | a71a180df9c3be88a033dcaee6b64c20b66d446a (patch) | |
tree | efdf5073cfd253c7c3de1ff5a66f8112a35d0cf0 | |
parent | 43c88bb58c32ebed173c2dc892b5c982021ec5f1 (diff) | |
download | rneovim-a71a180df9c3be88a033dcaee6b64c20b66d446a.tar.gz rneovim-a71a180df9c3be88a033dcaee6b64c20b66d446a.tar.bz2 rneovim-a71a180df9c3be88a033dcaee6b64c20b66d446a.zip |
vim-patch:8.0.1457: clojure now supports a shebang line
Problem: Clojure now supports a shebang line.
Solution: Detect clojure script from the shebang line. (David Burgin,
closes vim/vim#2570)
https://github.com/vim/vim/commit/8fd2ffc530f8f01afac53903e6ff95867afd94d7
-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 18263e2842..3279b58a47 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 @@ -100,6 +100,10 @@ if s:line1 =~# "^#!" elseif s:name =~# 'make\>' set ft=make + " Pike + elseif s:name =~# '^pike\%(\>\|[0-9]\)' + set ft=pike + " Lua elseif s:name =~# 'lua' set ft=lua @@ -172,6 +176,10 @@ if s:line1 =~# "^#!" elseif s:name =~# 'scala\>' set ft=scala + " Clojure + elseif s:name =~# 'clojure' + set ft=clojure + endif unlet s:name |