diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 06:17:29 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-10-29 06:17:29 +0100 |
commit | fb8f822d9c6271e42f5a80516f8e972b43977c33 (patch) | |
tree | bfaadd44cf8080163c0c299f4988f84b51302bbe /runtime/scripts.vim | |
parent | 17a5dde8d366cc2ef6a78d6af7559e9d87f8286b (diff) | |
parent | e101cdb3d7849761f331c19039b122bf4b77424d (diff) | |
download | rneovim-fb8f822d9c6271e42f5a80516f8e972b43977c33.tar.gz rneovim-fb8f822d9c6271e42f5a80516f8e972b43977c33.tar.bz2 rneovim-fb8f822d9c6271e42f5a80516f8e972b43977c33.zip |
Merge #9015
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 71e3f48bdf..ab66c0c0a1 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 @@ -133,7 +133,7 @@ if s:line1 =~# "^#!" set ft=ruby " JavaScript - elseif s:name =~# 'node\(js\)\=\>' || s:name =~# 'rhino\>' + elseif s:name =~# 'node\(js\)\=\>\|js\>' || s:name =~# 'rhino\>' set ft=javascript " BC calculator @@ -176,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 |