mirror of
https://github.com/vim/vim.git
synced 2025-08-25 19:53:53 -04:00
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:
parent
8a37b03289
commit
4bc0bed536
@ -137,7 +137,7 @@ if s:line1 =~# "^#!"
|
|||||||
set ft=ruby
|
set ft=ruby
|
||||||
|
|
||||||
" JavaScript
|
" JavaScript
|
||||||
elseif s:name =~# 'node\(js\)\=\>' || s:name =~# 'rhino\>'
|
elseif s:name =~# 'node\(js\)\=\>\|js\>' || s:name =~# 'rhino\>'
|
||||||
set ft=javascript
|
set ft=javascript
|
||||||
|
|
||||||
" BC calculator
|
" BC calculator
|
||||||
|
@ -561,10 +561,13 @@ let s:script_checks = {
|
|||||||
\ 'perl6': [['#!/path/perl6']],
|
\ 'perl6': [['#!/path/perl6']],
|
||||||
\ 'perl': [['#!/path/perl']],
|
\ 'perl': [['#!/path/perl']],
|
||||||
\ 'php': [['#!/path/php']],
|
\ 'php': [['#!/path/php']],
|
||||||
\ 'python': [['#!/path/python']],
|
\ 'python': [['#!/path/python'],
|
||||||
|
\ ['#!/path/python2'],
|
||||||
|
\ ['#!/path/python3']],
|
||||||
\ 'groovy': [['#!/path/groovy']],
|
\ 'groovy': [['#!/path/groovy']],
|
||||||
\ 'ruby': [['#!/path/ruby']],
|
\ 'ruby': [['#!/path/ruby']],
|
||||||
\ 'javascript': [['#!/path/node'],
|
\ 'javascript': [['#!/path/node'],
|
||||||
|
\ ['#!/path/js'],
|
||||||
\ ['#!/path/nodejs'],
|
\ ['#!/path/nodejs'],
|
||||||
\ ['#!/path/rhino']],
|
\ ['#!/path/rhino']],
|
||||||
\ 'bc': [['#!/path/bc']],
|
\ 'bc': [['#!/path/bc']],
|
||||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1465,
|
||||||
/**/
|
/**/
|
||||||
1464,
|
1464,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user