From a13eb2b147915e7e92a6de6c19ce448c7def4057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20S=C3=A1lyi?= <87373293+gergo-salyi@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:49:01 +0200 Subject: Add WebGPU Shading Language (WGSL) filetype (#12723) The current W3C Working Draft for the WebGPU Shading Language (WGSL) specifies 'text/wgsl' media type for WGSL modules with the '.wgsl' file extension: https://www.w3.org/TR/WGSL/#text-wgsl-media-type It has also been registered at the Internet Assigned Numbers Authority (IANA): https://www.iana.org/assignments/media-types/text/wgsl Neovim's nvim-lspconfig already associates wgsl language servers with 'filetype wgsl': https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#wgsl_analyzer However currenly setting 'filetype wgsl' for *.wgsl files by defalut in Neovim is blocked by adding this filetype to the vim project first: https://github.com/neovim/neovim/pull/23331 This commit adds this missing wgsl filetype. --- src/testdir/test_filetype.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 778e840d0e..1540f92fd8 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -775,6 +775,7 @@ def s:GetFilenameChecks(): dict> webmacro: ['file.wm'], wget: ['.wgetrc', 'wgetrc'], wget2: ['.wget2rc', 'wget2rc'], + wgsl: ['file.wgsl'], winbatch: ['file.wbt'], wit: ['file.wit'], wml: ['file.wml'], -- cgit v1.2.3