comparison runtime/scripts.vim @ 13182:181ddaf5e467 v8.0.1465

patch 8.0.1465: python2 and python3 detection not tested commit https://github.com/vim/vim/commit/4bc0bed53695ac67db8d601f2a15e48e7a196688 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 3 22:35:40 2018 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Feb 2018 22:45:05 +0100
parents b009ab2c1a8f
children acd7eaa13d2b
comparison
equal deleted inserted replaced
13181:6e5fd667df85 13182:181ddaf5e467
135 " Ruby 135 " Ruby
136 elseif s:name =~# 'ruby' 136 elseif s:name =~# 'ruby'
137 set ft=ruby 137 set ft=ruby
138 138
139 " JavaScript 139 " JavaScript
140 elseif s:name =~# 'node\(js\)\=\>' || s:name =~# 'rhino\>' 140 elseif s:name =~# 'node\(js\)\=\>\|js\>' || s:name =~# 'rhino\>'
141 set ft=javascript 141 set ft=javascript
142 142
143 " BC calculator 143 " BC calculator
144 elseif s:name =~# '^bc\>' 144 elseif s:name =~# '^bc\>'
145 set ft=bc 145 set ft=bc