fix: remove ftdetect, Fix struct highlight for wgsl

This commit is contained in:
Konrad Bochnia 2022-04-11 19:14:19 +02:00 committed by Stephan Seitz
parent 1a58c71b73
commit cc83e23a2a
3 changed files with 2 additions and 3 deletions

View file

@ -1 +0,0 @@
au BufRead,BufNewFile *.wgsl set filetype=wgsl

View file

@ -1031,7 +1031,7 @@ list.wgsl = {
files = { "src/parser.c" }, files = { "src/parser.c" },
}, },
maintainers = { "@szebniok" }, maintainers = { "@szebniok" },
filetype = "wgsl" filetype = "wgsl",
} }
local M = { local M = {

View file

@ -12,7 +12,7 @@
(variable_identifier_declaration (identifier) @parameter)) (variable_identifier_declaration (identifier) @parameter))
(struct_declaration (struct_declaration
(identifier) @structure) (identifier) @type)
(struct_declaration (struct_declaration
(struct_member (variable_identifier_declaration (identifier) @field))) (struct_member (variable_identifier_declaration (identifier) @field)))