From a3ed9169df8d0a56ab4f698d2c90e7e6b4404633 Mon Sep 17 00:00:00 2001 From: Sam McCall Date: Sat, 15 Oct 2022 03:05:39 +0200 Subject: c/c++ highlights: *& are @type or @operator based on context (#4278) --- runtime/queries/cpp/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/queries/cpp') diff --git a/runtime/queries/cpp/highlights.scm b/runtime/queries/cpp/highlights.scm index 11877a76..7bfccf72 100644 --- a/runtime/queries/cpp/highlights.scm +++ b/runtime/queries/cpp/highlights.scm @@ -34,6 +34,10 @@ (auto) @type "decltype" @type +(ref_qualifier ["&" "&&"] @type.builtin) +(reference_declarator ["&" "&&"] @type.builtin) +(abstract_reference_declarator ["&" "&&"] @type.builtin) + ; Constants (this) @variable.builtin -- cgit v1.2.3-70-g09d2