From cc83e23a2abacd670d9cf1c033e9c91774a46c96 Mon Sep 17 00:00:00 2001 From: Konrad Bochnia Date: Mon, 11 Apr 2022 19:14:19 +0200 Subject: [PATCH] fix: remove ftdetect, Fix `struct` highlight for wgsl --- ftdetect/wgsl.vim | 1 - lua/nvim-treesitter/parsers.lua | 2 +- queries/wgsl/highlights.scm | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 ftdetect/wgsl.vim diff --git a/ftdetect/wgsl.vim b/ftdetect/wgsl.vim deleted file mode 100644 index bfd7ccae7..000000000 --- a/ftdetect/wgsl.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile *.wgsl set filetype=wgsl diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 0b29dbee9..07332d7c0 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1031,7 +1031,7 @@ list.wgsl = { files = { "src/parser.c" }, }, maintainers = { "@szebniok" }, - filetype = "wgsl" + filetype = "wgsl", } local M = { diff --git a/queries/wgsl/highlights.scm b/queries/wgsl/highlights.scm index 9f9696e10..f8ca7b656 100644 --- a/queries/wgsl/highlights.scm +++ b/queries/wgsl/highlights.scm @@ -12,7 +12,7 @@ (variable_identifier_declaration (identifier) @parameter)) (struct_declaration - (identifier) @structure) + (identifier) @type) (struct_declaration (struct_member (variable_identifier_declaration (identifier) @field)))