aboutsummaryrefslogtreecommitdiff
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-06 05:05:54 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-11-06 05:26:16 +0100
commit93fb7383a330f03bf64ed5558a8e16ea4c742478 (patch)
tree596412501c48ef25aa15b1c3d1903c5568e7f2ab /runtime/scripts.vim
parent8f03014e8861df7f49bf4e1dbdfcc20e1611ce35 (diff)
downloadrneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.tar.gz
rneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.tar.bz2
rneovim-93fb7383a330f03bf64ed5558a8e16ea4c742478.zip
vim-patch:214641f77df6
Runtime file updates. https://github.com/vim/vim/commit/214641f77df6f318a4b3a0b09723c19859a103f4 N/A: vim-patch:26a280c47a1c
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim14
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index c2f6d5cff1..3b6163f9c2 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: 2016 May 21
+" Last change: 2017 Mar 04
" 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
@@ -124,6 +124,10 @@ if s:line1 =~ "^#!"
elseif s:name =~ 'ruby'
set ft=ruby
+ " JavaScript
+ elseif s:name =~ 'node\(js\)\=\>' || s:name =~ 'rhino\>'
+ set ft=javascript
+
" BC calculator
elseif s:name =~ '^bc\>'
set ft=bc
@@ -156,6 +160,14 @@ if s:line1 =~ "^#!"
elseif s:name =~ 'escript'
set ft=erlang
+ " Haskell
+ elseif s:name =~ 'haskell'
+ set ft=haskell
+
+ " Scala
+ elseif s:name =~ 'scala\>'
+ set ft=scala
+
endif
unlet s:name