mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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 #2570)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types in scripts
|
" Vim support file to detect file types in scripts
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" 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
|
" 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
|
" 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]\)'
|
elseif s:name =~# '^pike\%(\>\|[0-9]\)'
|
||||||
set ft=pike
|
set ft=pike
|
||||||
|
|
||||||
|
" Pike
|
||||||
|
elseif s:name =~# '^pike\%(\>\|[0-9]\)'
|
||||||
|
set ft=pike
|
||||||
|
|
||||||
" Lua
|
" Lua
|
||||||
elseif s:name =~# 'lua'
|
elseif s:name =~# 'lua'
|
||||||
set ft=lua
|
set ft=lua
|
||||||
@@ -176,6 +180,10 @@ if s:line1 =~# "^#!"
|
|||||||
elseif s:name =~# 'scala\>'
|
elseif s:name =~# 'scala\>'
|
||||||
set ft=scala
|
set ft=scala
|
||||||
|
|
||||||
|
" Clojure
|
||||||
|
elseif s:name =~# 'clojure'
|
||||||
|
set ft=clojure
|
||||||
|
|
||||||
endif
|
endif
|
||||||
unlet s:name
|
unlet s:name
|
||||||
|
|
||||||
|
@@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1457,
|
||||||
/**/
|
/**/
|
||||||
1456,
|
1456,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user