From 0dd147e6b7bcd9735940e32f211ac03416b1a74b Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sat, 30 Oct 2021 11:50:56 -0500 Subject: D: fix duplicate `@namespace` capture The previous query was highlighting everything inside that node, but we only want to highlight the identifiers. Ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1930/files#r735105675 --- queries/d/highlights.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/queries/d/highlights.scm b/queries/d/highlights.scm index de98cff73..d7787ce60 100644 --- a/queries/d/highlights.scm +++ b/queries/d/highlights.scm @@ -250,10 +250,8 @@ (fundamental_type) @type.builtin -[ - (module_name) - (module_fully_qualified_name) -] @namespace +(module_fully_qualified_name (packages (package_name) @namespace)) +(module_name) @namespace (at_attribute) @attribute -- cgit v1.2.3-70-g09d2