To: vim_dev@googlegroups.com Subject: Patch 8.0.1457 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1457 Problem: Clojure now supports a shebang line. Solution: Detect clojure script from the shebang line. (David Burgin, closes #2570) Files: runtime/scripts.vim *** ../vim-8.0.1456/runtime/scripts.vim 2017-11-11 15:37:13.443209748 +0100 --- runtime/scripts.vim 2018-02-03 15:42:53.379625929 +0100 *************** *** 1,7 **** " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar ! " Last change: 2017 Nov 11 " 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 --- 1,7 ---- " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar ! " 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,105 **** --- 100,109 ---- 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,177 **** --- 176,185 ---- elseif s:name =~# 'scala\>' set ft=scala + " Clojure + elseif s:name =~# 'clojure' + set ft=clojure + endif unlet s:name *** ../vim-8.0.1456/src/version.c 2018-02-03 15:38:37.541337745 +0100 --- src/version.c 2018-02-03 15:41:47.500067946 +0100 *************** *** 773,774 **** --- 773,776 ---- { /* Add new patch number below this line */ + /**/ + 1457, /**/ -- Eight Megabytes And Continually Swapping. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///