diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-25 21:34:26 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-25 21:34:26 +0200 |
commit | 6a7af8e2dbcb768a768831d9e6355c855c215ebc (patch) | |
tree | bb043e1eac67343184488a7b2900137581b6bfec /src/testdir | |
parent | 5c381eb9e72990e4153045f4911c59b9b2194edd (diff) |
patch 8.1.1593: filetype not detected for C++ header files without extensionv8.1.1593
Problem: Filetype not detected for C++ header files without extension.
Solution: Recognize the file by the Emacs file mode. (Dmitry Ilyin,
closes #4593)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_filetype.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 95fb62e712..37d8ceda92 100644 --- 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() |