diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-04-09 17:43:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 17:43:33 +0200 |
commit | 61bd5426f4ef0d8f45d0972f7da870131ae278ba (patch) | |
tree | a618f6e7c57e2710478c9cbbe2ff1535fb0a63e1 | |
parent | 3280dc2b60db8d4e36bff6d481e3e873f32040b1 (diff) | |
download | rneovim-61bd5426f4ef0d8f45d0972f7da870131ae278ba.tar.gz rneovim-61bd5426f4ef0d8f45d0972f7da870131ae278ba.tar.bz2 rneovim-61bd5426f4ef0d8f45d0972f7da870131ae278ba.zip |
vim-patch:8.2.4721: cooklang files are not recognized (#18058)
Problem: Cooklang files are not recognized.
Solution: recognize *.cook files. (Goc Dundar, closes vim/vim#10120)
https://github.com/vim/vim/commit/36951ed1dab2b2e816dc8959c72b5732f36d9e3b
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index e0d24d73c8..c5690ba716 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -390,6 +390,9 @@ au BufNewFile,BufRead *.cfm,*.cfi,*.cfc setf cf " Configure scripts au BufNewFile,BufRead configure.in,configure.ac setf config +" Cooklang +au BufNewFile,BufRead *.cook setf cook + " CUDA Compute Unified Device Architecture au BufNewFile,BufRead *.cu,*.cuh setf cuda diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 9397788e9e..880b99a2fa 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -95,6 +95,7 @@ local extension = { clj = "clojure", cljc = "clojure", cljs = "clojure", + cook = "cook", cmake = "cmake", cmod = "cmod", lib = "cobol", diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 1f76063aed..9d31eae17d 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -116,6 +116,7 @@ let s:filename_checks = { \ 'conf': ['auto.master'], \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file'], \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'], + \ 'cook': ['file.cook'], \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh'], \ 'crm': ['file.crm'], \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], |