]> granicus.if.org Git - vim/commitdiff
patch 9.0.1393: Cairo files are not recognized v9.0.1393
authorAmaan Qureshi <amaanq12@gmail.com>
Wed, 8 Mar 2023 16:39:21 +0000 (16:39 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Mar 2023 16:39:21 +0000 (16:39 +0000)
Problem:    Cairo files are not recognized.
Solution:   Add a pattern for Cairo files. (Amaan Qureshi, closes #12118)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 88956422a0824b68cc90683b47aa455b1a3d31eb..59cb06c3c09e8f6db7123ae4fbfcebd3edc2a632 100644 (file)
@@ -277,6 +277,9 @@ endif
 au BufNewFile,BufRead *.c                      call dist#ft#FTlpc()
 au BufNewFile,BufRead *.lpc,*.ulpc             setf lpc
 
+" Cairo
+au BufNewFile,BufRead *.cairo                  setf cairo
+
 " Calendar
 au BufNewFile,BufRead calendar                 setf calendar
 
index ff438bb85dd0e53ff9cb669bb0c597227f1341a9..042c25df28dcb331c699d9d9ec3b633899db584d 100644 (file)
@@ -96,6 +96,7 @@ let s:filename_checks = {
     \ 'cabal': ['file.cabal'],
     \ 'cabalconfig': ['cabal.config'],
     \ 'cabalproject': ['cabal.project', 'cabal.project.local'],
+    \ 'cairo': ['file.cairo'],
     \ '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'],
index 9689d8b2df2a4712a46dc1db17a080e05e2d56e3..3a2ff57c97714ae0996cde2ce1d8d6a687dd77c0 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1393,
 /**/
     1392,
 /**/