diff 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
line wrap: on
line diff
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -586,6 +586,8 @@ let s:script_checks = {
       \ 'cfengine': [['#!/path/cfengine']],
       \ 'erlang': [['#!/path/escript']],
       \ 'haskell': [['#!/path/haskell']],
+      \ 'cpp': [['// Standard iostream objects -*- C++ -*-'],
+      \         ['// -*- C++ -*-']],
       \ }
 
 func Test_script_detection()