diff options
| -rw-r--r-- | runtime/scripts.vim | 2 | ||||
| -rw-r--r-- | src/nvim/testdir/test_filetype.vim | 5 | 
2 files changed, 5 insertions, 2 deletions
| diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 3279b58a47..ab66c0c0a1 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -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 diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index eab9af1d76..cfdd4b889d 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -560,10 +560,13 @@ let s:script_checks = {        \ 'perl6': [['#!/path/perl6']],        \ 'perl': [['#!/path/perl']],        \ 'php': [['#!/path/php']], -      \ 'python': [['#!/path/python']], +      \ 'python': [['#!/path/python'], +      \            ['#!/path/python2'], +      \            ['#!/path/python3']],        \ 'groovy': [['#!/path/groovy']],        \ 'ruby': [['#!/path/ruby']],        \ 'javascript': [['#!/path/node'], +      \                ['#!/path/js'],        \                ['#!/path/nodejs'],        \                ['#!/path/rhino']],        \ 'bc': [['#!/path/bc']], | 
