diff options
author | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-08 18:19:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 00:19:18 +0100 |
commit | ae70e946eeaec792c9a87a89fea7141b5ee6a33c (patch) | |
tree | 3bc121311bad222155eacf0de88f023f278fe732 | |
parent | 6dd9770baf16abfedba667e93d92899602864645 (diff) | |
download | rneovim-ae70e946eeaec792c9a87a89fea7141b5ee6a33c.tar.gz rneovim-ae70e946eeaec792c9a87a89fea7141b5ee6a33c.tar.bz2 rneovim-ae70e946eeaec792c9a87a89fea7141b5ee6a33c.zip |
vim-patch:9.0.1395: Odin files are not recognized (#22580)
Problem: Odin files are not recognized.
Solution: Add a pattern for Odin files. (Amaan Qureshi, closes vim/vim#12122)
https://github.com/vim/vim/commit/638388b8ef37684e36a7f5d9286bab2d31c28f36
-rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
-rw-r--r-- | test/old/testdir/test_filetype.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index 33324f580a..8238fec2cc 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -751,6 +751,7 @@ local extension = { mli = 'ocaml', ml = 'ocaml', occ = 'occam', + odin = 'odin', xom = 'omnimark', xin = 'omnimark', opam = 'opam', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index c9f14842a1..cb16200afc 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -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'], |