comparison src/testdir/test_filetype.vim @ 17188:93cb37b45636 v8.1.1593

patch 8.1.1593: filetype not detected for C++ header files without extension commit https://github.com/vim/vim/commit/6a7af8e2dbcb768a768831d9e6355c855c215ebc Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 25 21:34:26 2019 +0200 patch 8.1.1593: filetype not detected for C++ header files without extension Problem: Filetype not detected for C++ header files without extension. Solution: Recognize the file by the Emacs file mode. (Dmitry Ilyin, closes #4593)
author Bram Moolenaar <Bram@vim.org>
date Tue, 25 Jun 2019 21:45:05 +0200
parents 8d91579414b8
children ae379e753465
comparison
equal deleted inserted replaced
17187:3e79aa490556 17188:93cb37b45636
584 \ 'wml': [['#!/path/wml']], 584 \ 'wml': [['#!/path/wml']],
585 \ 'scheme': [['#!/path/scheme']], 585 \ 'scheme': [['#!/path/scheme']],
586 \ 'cfengine': [['#!/path/cfengine']], 586 \ 'cfengine': [['#!/path/cfengine']],
587 \ 'erlang': [['#!/path/escript']], 587 \ 'erlang': [['#!/path/escript']],
588 \ 'haskell': [['#!/path/haskell']], 588 \ 'haskell': [['#!/path/haskell']],
589 \ 'cpp': [['// Standard iostream objects -*- C++ -*-'],
590 \ ['// -*- C++ -*-']],
589 \ } 591 \ }
590 592
591 func Test_script_detection() 593 func Test_script_detection()
592 filetype on 594 filetype on
593 for [ft, files] in items(s:script_checks) 595 for [ft, files] in items(s:script_checks)