Mercurial > vim
changeset 32184:f1602cf7022f v9.0.1423
patch 9.0.1423: WebAssembly Interface Type files are not recognized
Commit: https://github.com/vim/vim/commit/890c77203637626b1005db818667084d11e653e7
Author: Amaan Qureshi <amaanq12@gmail.com>
Date: Tue Mar 21 22:03:15 2023 +0000
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 https://github.com/vim/vim/issues/12173)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Mar 2023 23:15:04 +0100 |
parents | 819e403d09a0 |
children | 881f52b12869 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2345,6 +2345,9 @@ au BufNewFile,BufRead *.vue setf vue " WebAssembly au BufNewFile,BufRead *.wast,*.wat setf wast +" WebAssembly Interface Type (WIT) +au BufNewFile,BufRead *.wit setf wit + " Webmacro au BufNewFile,BufRead *.wm setf webmacro
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -663,6 +663,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'],