Patch 9.0.1229

2 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 22, 2023, 8:11:16 AM1/22/23
to vim...@googlegroups.com

Patch 9.0.1229
Problem: Cap'n Proto files are not recognized.
Solution: Add a pattern and the "capnp" filetype. (Amaan Qureshi,
closes #11862)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-9.0.1228/runtime/filetype.vim 2023-01-13 15:35:14.147630709 +0000
--- runtime/filetype.vim 2023-01-22 13:08:07.904989891 +0000
***************
*** 277,282 ****
--- 277,285 ----
" Calendar
au BufNewFile,BufRead calendar setf calendar

+ " Cap'n Proto
+ au BufNewFile,BufRead *.capnp setf capnp
+
" C#
au BufNewFile,BufRead *.cs,*.csx setf cs

*** ../vim-9.0.1228/src/testdir/test_filetype.vim 2023-01-13 15:35:14.147630709 +0000
--- src/testdir/test_filetype.vim 2023-01-22 13:08:07.904989891 +0000
***************
*** 96,101 ****
--- 96,102 ----
\ 'cabalconfig': ['cabal.config'],
\ 'cabalproject': ['cabal.project', 'cabal.project.local'],
\ 'calendar': ['calendar', '/.calendar/file', '/share/calendar/any/calendar.file', '/share/calendar/calendar.file', 'any/share/calendar/any/calendar.file', 'any/share/calendar/calendar.file'],
+ \ 'capnp': ['file.capnp'],
\ 'catalog': ['catalog', 'sgml.catalogfile', 'sgml.catalog', 'sgml.catalog-file'],
\ 'cdl': ['file.cdl'],
\ 'cdrdaoconf': ['/etc/cdrdao.conf', '/etc/defaults/cdrdao', '/etc/default/cdrdao', '.cdrdao', 'any/etc/cdrdao.conf', 'any/etc/default/cdrdao', 'any/etc/defaults/cdrdao'],
*** ../vim-9.0.1228/src/version.c 2023-01-22 12:41:52.000484614 +0000
--- src/version.c 2023-01-22 13:09:52.561034451 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 1229,
/**/

--
Everyone has a photographic memory. Most don't have a memory card.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages