Skip to content

Commit 638388b

Browse files
amaanqbrammool
authored andcommitted
patch 9.0.1395: Odin files are not recognized
Problem: Odin files are not recognized. Solution: Add a pattern for Odin files. (Amaan Qureshi, closes #12122)
1 parent cde1f87 commit 638388b

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
@@ -1402,6 +1402,9 @@ au BufNewFile,BufRead *.occ setf occam
14021402
" Octave
14031403
au BufNewFile,BufRead octave.conf,.octaverc,octaverc setf octave
14041404

1405+
" Odin
1406+
au BufNewFile,BufRead *.odin setf odin
1407+
14051408
" Omnimark
14061409
au BufNewFile,BufRead *.xom,*.xin setf omnimark
14071410

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ let s:filename_checks = {
414414
\ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
415415
\ 'occam': ['file.occ'],
416416
\ 'octave': ['octaverc', '.octaverc', 'octave.conf'],
417+
\ 'odin': ['file.odin'],
417418
\ 'omnimark': ['file.xom', 'file.xin'],
418419
\ 'opam': ['opam', 'file.opam', 'file.opam.template'],
419420
\ 'openroad': ['file.or'],

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+
1395,
698700
/**/
699701
1394,
700702
/**/

0 commit comments

Comments
 (0)