patch 8.0.1465: python2 and python3 detection not tested

Problem:    Python2 and python3 detection not tested. (Matej Cepl)
Solution:   Add test for detecting python2 and python3.  Also detect a script
            using "js" as javascript.
This commit is contained in:
Bram Moolenaar
2018-02-03 22:35:40 +01:00
parent 8a37b03289
commit 4bc0bed536
3 changed files with 7 additions and 2 deletions

View File

@ -137,7 +137,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