diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-10-30 11:50:56 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-31 10:22:43 +0100 |
| commit | 0dd147e6b7bcd9735940e32f211ac03416b1a74b (patch) | |
| tree | becafb497697a0466517f5916a292d27444a2325 | |
| parent | Rust: highlight uppercase identifiers in match arms as constant (#1940) (diff) | |
| download | nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar.gz nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar.bz2 nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar.lz nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar.xz nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.tar.zst nvim-treesitter-0dd147e6b7bcd9735940e32f211ac03416b1a74b.zip | |
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
| -rw-r--r-- | queries/d/highlights.scm | 6 |
1 files 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 |
