]> granicus.if.org Git - vim/commitdiff
patch 9.0.1395: Odin files are not recognized v9.0.1395
authorAmaan Qureshi <amaanq12@gmail.com>
Wed, 8 Mar 2023 20:35:17 +0000 (20:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 8 Mar 2023 20:35:17 +0000 (20:35 +0000)
Problem:    Odin files are not recognized.
Solution:   Add a pattern for Odin files. (Amaan Qureshi, closes #12122)

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

index b5cae1b5ad30e2eab4ce82e35c354f95e0a597ef..da2215917da66e80f9f386641a6fec81cc534d2c 100644 (file)
@@ -1402,6 +1402,9 @@ au BufNewFile,BufRead *.occ                       setf occam
 " Octave
 au BufNewFile,BufRead octave.conf,.octaverc,octaverc   setf octave
 
+" Odin
+au BufNewFile,BufRead *.odin                   setf odin
+
 " Omnimark
 au BufNewFile,BufRead *.xom,*.xin              setf omnimark
 
index fa09482f16c4e90108edd497afd3b75ef1f87c9d..94b08482978dc673f99ab79f2728cd7b8ddff04e 100644 (file)
@@ -414,6 +414,7 @@ let s:filename_checks = {
     \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
     \ 'occam': ['file.occ'],
     \ 'octave': ['octaverc', '.octaverc', 'octave.conf'],
+    \ 'odin': ['file.odin'],
     \ 'omnimark': ['file.xom', 'file.xin'],
     \ 'opam': ['opam', 'file.opam', 'file.opam.template'],
     \ 'openroad': ['file.or'],
index 34fe679d6042a06eb62646147f27a4b97916f4c7..82d89c1ce500aeb40bd85af1e0936bdf7ff2b487 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1395,
 /**/
     1394,
 /**/