summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_filetype.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-02-03 22:35:40 +0100
committerBram Moolenaar <Bram@vim.org>2018-02-03 22:35:40 +0100
commit4bc0bed53695ac67db8d601f2a15e48e7a196688 (patch)
tree909d8e81be69f61b6d32b534668c695b64bc37ab /src/testdir/test_filetype.vim
parent8a37b032895b40dd6953280c33585bcba0c7ef8b (diff)
patch 8.0.1465: python2 and python3 detection not testedv8.0.1465
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.
Diffstat (limited to 'src/testdir/test_filetype.vim')
-rw-r--r--src/testdir/test_filetype.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index ccf8016839..62dbc7473f 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -561,10 +561,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']],