neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 48ce2ef912cbbe43b85b45a8a97f8d240318718a
parent a7b537c7a4e5b6114cd75df5178199f4449c6480
Author: Amaan Qureshi <amaanq12@gmail.com>
Date:   Wed, 22 Mar 2023 04:19:56 -0400

vim-patch:9.0.{1419,1421,1422,1423}: some files are not recognized (#22749)

vim-patch:9.0.1419: Lean files are not recognized

Problem:    Lean files are not recognized.
Solution:   Add a pattern for Lean files. (Amaan Qureshi, closes vim/vim#12177)

https://github.com/vim/vim/commit/4a5c39fc52a73d46ac77cf574f765a465befc3c0

vim-patch:9.0.1421: Nu files are not recognized

Problem:    Nu files are not recognized.
Solution:   Add a pattern for Nu files. (Amaan Qureshi, closes vim/vim#12172)

https://github.com/vim/vim/commit/8aa2a37f8983a7863afa32d9ffbe64b2f2bc70be

vim-patch:9.0.1422: Sage files are not recognized

Problem:    Sage files are not recognized.
Solution:   Add a pattern for Sage files. (Amaan Qureshi, closes vim/vim#12176)

https://github.com/vim/vim/commit/d0639d717ba7cf8b04b588aadd0b379ed43a5f1f

vim-patch:9.0.1423: WebAssembly Interface Type files are not recognized

Problem:    WebAssembly Interface Type files are not recognized.
Solution:   Add a pattern for WIT files. (Amaan Qureshi, closes vim/vim#12173)

https://github.com/vim/vim/commit/890c77203637626b1005db818667084d11e653e7
Diffstat:
Mruntime/lua/vim/filetype.lua | 5+++++
Mtest/old/testdir/test_filetype.vim | 4++++
2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua @@ -593,6 +593,7 @@ local extension = { lte = 'latte', ld = 'ld', ldif = 'ldif', + lean = 'lean', journal = 'ledger', ldg = 'ledger', ledger = 'ledger', @@ -908,6 +909,7 @@ local extension = { builder = 'ruby', rake = 'ruby', rs = 'rust', + sage = 'sage', sas = 'sas', sass = 'sass', sa = 'sather', @@ -1106,6 +1108,7 @@ local extension = { wdl = 'wdl', wm = 'webmacro', wbt = 'winbatch', + wit = 'wit', wml = 'wml', wsml = 'wsml', ad = 'xdefaults', @@ -1543,6 +1546,8 @@ local filename = { NEWS = function(path, bufnr) return require('vim.filetype.detect').news(bufnr) end, + ['env.nu'] = 'nu', + ['config.nu'] = 'nu', ['.ocamlinit'] = 'ocaml', ['.octaverc'] = 'octave', octaverc = 'octave', diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim @@ -322,6 +322,7 @@ let s:filename_checks = { \ 'latte': ['file.latte', 'file.lte'], \ 'ld': ['file.ld'], \ 'ldif': ['file.ldif'], + \ 'lean': ['file.lean'], \ 'ledger': ['file.ldg', 'file.ledger', 'file.journal'], \ 'less': ['file.less'], \ 'lex': ['file.lex', 'file.l', 'file.lxx', 'file.l++'], @@ -412,6 +413,7 @@ let s:filename_checks = { \ 'nqc': ['file.nqc'], \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], \ 'nsis': ['file.nsi', 'file.nsh'], + \ 'nu': ['env.nu', 'config.nu'], \ 'obj': ['file.obj'], \ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'], \ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'], @@ -539,6 +541,7 @@ let s:filename_checks = { \ 'skill': ['file.il', 'file.ils', 'file.cdf'], \ 'cdc': ['file.cdc'], \ 'slang': ['file.sl'], + \ 'sage': ['file.sage'], \ 'slice': ['file.ice'], \ 'slpconf': ['/etc/slp.conf', 'any/etc/slp.conf'], \ 'slpreg': ['/etc/slp.reg', 'any/etc/slp.reg'], @@ -661,6 +664,7 @@ let s:filename_checks = { \ 'wget': ['.wgetrc', 'wgetrc'], \ 'wget2': ['.wget2rc', 'wget2rc'], \ 'winbatch': ['file.wbt'], + \ 'wit': ['file.wit'], \ 'wml': ['file.wml'], \ 'wsh': ['file.wsf', 'file.wsc'], \ 'wsml': ['file.wsml'],