Skip to content

Commit ddb3493

Browse files
committed
patch 8.0.1458: filetype detection test does not check all scripts
Problem: Filetype detection test does not check all scripts. Solution: Add most scripts to the test
1 parent 8fd2ffc commit ddb3493

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

src/testdir/test_filetype.vim

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,40 @@ let s:script_checks = {
542542
\ 'strace': [['execve("/usr/bin/pstree", ["pstree"], 0x7ff0 /* 63 vars */) = 0'],
543543
\ ['15:17:47 execve("/usr/bin/pstree", ["pstree"], ... "_=/usr/bin/strace"]) = 0'],
544544
\ ['__libc_start_main and something']],
545+
\ 'clojure': [['#!/path/clojure']],
546+
\ 'scala': [['#!/path/scala']],
547+
\ 'tcsh': [['#!/path/tcsh']],
548+
\ 'zsh': [['#!/path/zsh']],
549+
\ 'tcl': [['#!/path/tclsh'],
550+
\ ['#!/path/wish'],
551+
\ ['#!/path/expectk'],
552+
\ ['#!/path/itclsh'],
553+
\ ['#!/path/itkwish']],
554+
\ 'expect': [['#!/path/expect']],
555+
\ 'gnuplot': [['#!/path/gnuplot']],
556+
\ 'make': [['#!/path/make']],
557+
\ 'pike': [['#!/path/pike'],
558+
\ ['#!/path/pike0'],
559+
\ ['#!/path/pike9']],
560+
\ 'lua': [['#!/path/lua']],
561+
\ 'perl6': [['#!/path/perl6']],
562+
\ 'perl': [['#!/path/perl']],
563+
\ 'php': [['#!/path/php']],
564+
\ 'python': [['#!/path/python']],
565+
\ 'groovy': [['#!/path/groovy']],
566+
\ 'ruby': [['#!/path/ruby']],
567+
\ 'javascript': [['#!/path/node'],
568+
\ ['#!/path/nodejs'],
569+
\ ['#!/path/rhino']],
570+
\ 'bc': [['#!/path/bc']],
571+
\ 'sed': [['#!/path/sed']],
572+
\ 'ocaml': [['#!/path/ocaml']],
573+
\ 'awk': [['#!/path/awk']],
574+
\ 'wml': [['#!/path/wml']],
575+
\ 'scheme': [['#!/path/scheme']],
576+
\ 'cfengine': [['#!/path/cfengine']],
577+
\ 'erlang': [['#!/path/escript']],
578+
\ 'haskell': [['#!/path/haskell']],
545579
\ }
546580

547581
func Test_script_detection()

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1458,
774776
/**/
775777
1457,
776778
/**/

0 commit comments

Comments
 (0)