diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-25 21:20:19 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-25 21:20:26 -0400 |
commit | 62c7fcbdab28589b0efff03d7b26408362514a19 (patch) | |
tree | b26eaefc81864e4a9b9d02674fb6b8fec4ac0ab4 /src | |
parent | 10c983fabeae6f2cda93404f3aa4ee814baa43f3 (diff) | |
download | rneovim-62c7fcbdab28589b0efff03d7b26408362514a19.tar.gz rneovim-62c7fcbdab28589b0efff03d7b26408362514a19.tar.bz2 rneovim-62c7fcbdab28589b0efff03d7b26408362514a19.zip |
vim-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 vim/vim#4593)
https://github.com/vim/vim/commit/6a7af8e2dbcb768a768831d9e6355c855c215ebc
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 7a99a37be4..897f736d76 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -581,6 +581,8 @@ let s:script_checks = { \ 'cfengine': [['#!/path/cfengine']], \ 'erlang': [['#!/path/escript']], \ 'haskell': [['#!/path/haskell']], + \ 'cpp': [['// Standard iostream objects -*- C++ -*-'], + \ ['// -*- C++ -*-']], \ } func Test_script_detection() |