Skip to content

Commit ff226d4

Browse files
amaanqbrammool
authored andcommitted
patch 9.0.1393: Cairo files are not recognized
Problem: Cairo files are not recognized. Solution: Add a pattern for Cairo files. (Amaan Qureshi, closes #12118)
1 parent 7ac5023 commit ff226d4

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ endif
277277
au BufNewFile,BufRead *.c call dist#ft#FTlpc()
278278
au BufNewFile,BufRead *.lpc,*.ulpc setf lpc
279279

280+
" Cairo
281+
au BufNewFile,BufRead *.cairo setf cairo
282+
280283
" Calendar
281284
au BufNewFile,BufRead calendar setf calendar
282285

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ let s:filename_checks = {
9696
\ 'cabal': ['file.cabal'],
9797
\ 'cabalconfig': ['cabal.config'],
9898
\ 'cabalproject': ['cabal.project', 'cabal.project.local'],
99+
\ 'cairo': ['file.cairo'],
99100
\ 'calendar': ['calendar', '/.calendar/file', '/share/calendar/any/calendar.file', '/share/calendar/calendar.file', 'any/share/calendar/any/calendar.file', 'any/share/calendar/calendar.file'],
100101
\ 'capnp': ['file.capnp'],
101102
\ 'catalog': ['catalog', 'sgml.catalogfile', 'sgml.catalog', 'sgml.catalog-file'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1393,
698700
/**/
699701
1392,
700702
/**/

0 commit comments

Comments
 (0)