@@ -162,7 +162,7 @@ let s:filename_checks = {
162
162
\ ' fetchmail' : [' .fetchmailrc' ],
163
163
\ ' fgl' : [' file.4gl' , ' file.4gh' , ' file.m4gl' ],
164
164
\ ' focexec' : [' file.fex' , ' file.focexec' ],
165
- \ ' forth' : [' file.fs' , ' file.ft' ],
165
+ \ ' forth' : [' file.fs' , ' file.ft' , ' file.fth ' ],
166
166
\ ' fortran' : [' file.f' , ' file.for' , ' file.fortran' , ' file.fpp' , ' file.ftn' , ' file.f77' , ' file.f90' , ' file.f95' , ' file.f03' , ' file.f08' ],
167
167
\ ' framescript' : [' file.fsl' ],
168
168
\ ' freebasic' : [' file.fb' , ' file.bi' ],
@@ -171,7 +171,7 @@ let s:filename_checks = {
171
171
\ ' gdmo' : [' file.mo' , ' file.gdmo' ],
172
172
\ ' gedcom' : [' file.ged' , ' lltxxxxx.txt' ],
173
173
\ ' gitcommit' : [' COMMIT_EDITMSG' , ' MERGE_MSG' , ' TAG_EDITMSG' ],
174
- \ ' gitconfig' : [' file.git/config' , ' .gitconfig' , ' .gitmodules' , ' file.git/modules//config' , ' /.config/git/config' ],
174
+ \ ' gitconfig' : [' file.git/config' , ' .gitconfig' , ' .gitmodules' , ' file.git/modules//config' , ' /.config/git/config' , ' /etc/gitconfig ' ],
175
175
\ ' gitolite' : [' gitolite.conf' ],
176
176
\ ' gitrebase' : [' git-rebase-todo' ],
177
177
\ ' gitsendemail' : [' .gitsendemail.msg.xxxxxx' ],
@@ -322,7 +322,9 @@ let s:filename_checks = {
322
322
\ ' pf' : [' pf.conf' ],
323
323
\ ' pfmain' : [' main.cf' ],
324
324
\ ' php' : [' file.php' , ' file.php9' , ' file.phtml' , ' file.ctp' ],
325
- \ ' pike' : [' file.pike' , ' file.lpc' , ' file.ulpc' , ' file.pmod' ],
325
+ \ ' lpc' : [' file.lpc' , ' file.ulpc' ],
326
+ \ ' pike' : [' file.pike' , ' file.pmod' ],
327
+ \ ' cmod' : [' file.cmod' ],
326
328
\ ' pilrc' : [' file.rcp' ],
327
329
\ ' pine' : [' .pinerc' , ' pinerc' , ' .pinercex' , ' pinercex' ],
328
330
\ ' pinfo' : [' /etc/pinforc' , ' /.pinforc' ],
@@ -347,7 +349,7 @@ let s:filename_checks = {
347
349
\ ' protocols' : [' /etc/protocols' ],
348
350
\ ' psf' : [' file.psf' ],
349
351
\ ' pyrex' : [' file.pyx' , ' file.pxd' ],
350
- \ ' python' : [' file.py' , ' file.pyw' , ' .pythonstartup' , ' .pythonrc' , ' file.ptl' ],
352
+ \ ' python' : [' file.py' , ' file.pyw' , ' .pythonstartup' , ' .pythonrc' , ' file.ptl' , ' file.pyi ' ],
351
353
\ ' quake' : [' anybaseq2/file.cfg' , ' anyid1/file.cfg' , ' quake3/file.cfg' ],
352
354
\ ' radiance' : [' file.rad' , ' file.mat' ],
353
355
\ ' ratpoison' : [' .ratpoisonrc' , ' ratpoisonrc' ],
@@ -386,7 +388,7 @@ let s:filename_checks = {
386
388
\ ' services' : [' /etc/services' ],
387
389
\ ' setserial' : [' /etc/serial.conf' ],
388
390
\ ' sh' : [' /etc/udev/cdsymlinks.conf' ],
389
- \ ' sieve' : [' file.siv' ],
391
+ \ ' sieve' : [' file.siv' , ' file.sieve ' ],
390
392
\ ' simula' : [' file.sim' ],
391
393
\ ' sinda' : [' file.sin' , ' file.s85' ],
392
394
\ ' sisu' : [' file.sst' , ' file.ssm' , ' file.ssi' , ' file.-sst' , ' file._sst' , ' file.sst.meta' , ' file.-sst.meta' , ' file._sst.meta' ],
@@ -471,6 +473,7 @@ let s:filename_checks = {
471
473
\ ' voscm' : [' file.cm' ],
472
474
\ ' vrml' : [' file.wrl' ],
473
475
\ ' vroom' : [' file.vroom' ],
476
+ \ ' wast' : [' file.wast' , ' file.wat' ],
474
477
\ ' webmacro' : [' file.wm' ],
475
478
\ ' wget' : [' .wgetrc' , ' wgetrc' ],
476
479
\ ' winbatch' : [' file.wbt' ],
@@ -481,7 +484,7 @@ let s:filename_checks = {
481
484
\ ' xhtml' : [' file.xhtml' , ' file.xht' ],
482
485
\ ' xinetd' : [' /etc/xinetd.conf' ],
483
486
\ ' xmath' : [' file.msc' , ' file.msf' ],
484
- \ ' xml' : [' /etc/blkid.tab' , ' /etc/blkid.tab.old' , ' file.xmi' , ' file.csproj' , ' file.csproj.user' , ' file.ts' , ' file.ui' , ' file.tpm' , ' /etc/xdg/menus/file.menu' , ' fglrxrc' , ' file.xlf' , ' file.xliff' , ' file.xul' ],
487
+ \ ' xml' : [' /etc/blkid.tab' , ' /etc/blkid.tab.old' , ' file.xmi' , ' file.csproj' , ' file.csproj.user' , ' file.ts' , ' file.ui' , ' file.tpm' , ' /etc/xdg/menus/file.menu' , ' fglrxrc' , ' file.xlf' , ' file.xliff' , ' file.xul' , ' file.wsdl ' ],
485
488
\ ' xmodmap' : [' anyXmodmap' ],
486
489
\ ' xf86conf' : [' xorg.conf' , ' xorg.conf-4' ],
487
490
\ ' xpm2' : [' file.xpm2' ],
@@ -539,6 +542,43 @@ let s:script_checks = {
539
542
\ ' strace' : [[' execve("/usr/bin/pstree", ["pstree"], 0x7ff0 /* 63 vars */) = 0' ],
540
543
\ [' 15:17:47 execve("/usr/bin/pstree", ["pstree"], ... "_=/usr/bin/strace"]) = 0' ],
541
544
\ [' __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
+ \ [' #!/path/python2' ],
566
+ \ [' #!/path/python3' ]],
567
+ \ ' groovy' : [[' #!/path/groovy' ]],
568
+ \ ' ruby' : [[' #!/path/ruby' ]],
569
+ \ ' javascript' : [[' #!/path/node' ],
570
+ \ [' #!/path/js' ],
571
+ \ [' #!/path/nodejs' ],
572
+ \ [' #!/path/rhino' ]],
573
+ \ ' bc' : [[' #!/path/bc' ]],
574
+ \ ' sed' : [[' #!/path/sed' ]],
575
+ \ ' ocaml' : [[' #!/path/ocaml' ]],
576
+ \ ' awk' : [[' #!/path/awk' ]],
577
+ \ ' wml' : [[' #!/path/wml' ]],
578
+ \ ' scheme' : [[' #!/path/scheme' ]],
579
+ \ ' cfengine' : [[' #!/path/cfengine' ]],
580
+ \ ' erlang' : [[' #!/path/escript' ]],
581
+ \ ' haskell' : [[' #!/path/haskell' ]],
542
582
\ }
543
583
544
584
func Test_script_detection ()
0 commit comments