mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
vim-patch:a13eb2b14791 (#24622)
Add WebGPU Shading Language (WGSL) filetype (vim/vim#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.
a13eb2b147
Co-authored-by: Gergő Sályi <87373293+gergo-salyi@users.noreply.github.com>
This commit is contained in:
parent
bad71a4ca7
commit
ceb501c1c6
@ -1049,6 +1049,7 @@ local extension = {
|
|||||||
wat = 'wat',
|
wat = 'wat',
|
||||||
wdl = 'wdl',
|
wdl = 'wdl',
|
||||||
wm = 'webmacro',
|
wm = 'webmacro',
|
||||||
|
wgsl = 'wgsl',
|
||||||
wbt = 'winbatch',
|
wbt = 'winbatch',
|
||||||
wit = 'wit',
|
wit = 'wit',
|
||||||
wml = 'wml',
|
wml = 'wml',
|
||||||
|
@ -697,6 +697,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'webmacro': ['file.wm'],
|
\ 'webmacro': ['file.wm'],
|
||||||
\ 'wget': ['.wgetrc', 'wgetrc'],
|
\ 'wget': ['.wgetrc', 'wgetrc'],
|
||||||
\ 'wget2': ['.wget2rc', 'wget2rc'],
|
\ 'wget2': ['.wget2rc', 'wget2rc'],
|
||||||
|
\ 'wgsl': ['file.wgsl'],
|
||||||
\ 'winbatch': ['file.wbt'],
|
\ 'winbatch': ['file.wbt'],
|
||||||
\ 'wit': ['file.wit'],
|
\ 'wit': ['file.wit'],
|
||||||
\ 'wml': ['file.wml'],
|
\ 'wml': ['file.wml'],
|
||||||
|
Loading…
Reference in New Issue
Block a user