From 66160a6b40e631bde25518b13edf2cecb3c358c7 Mon Sep 17 00:00:00 2001 From: Alec Ghost Date: Mon, 9 Mar 2026 21:23:02 +0100 Subject: [PATCH] feat(highlights): add class def and generic idents Add two new rules to highlights.scm. - Capture class definition identifiers as types. - Capture generic type identifiers as types. --- queries/highlights.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/queries/highlights.scm b/queries/highlights.scm index af744484..f8ca8ee7 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -35,6 +35,14 @@ (attribute attribute: (identifier) @property) (type (identifier) @type) +; Class definitions +(class_definition + name: (identifier) @type) + +; Generics +(generic_type (identifier) @type) + + ; Literals [