From 5aaffe8e53cc31ce801e9165062b31a06531e502 Mon Sep 17 00:00:00 2001 From: JenChieh Date: Fri, 18 Aug 2023 11:57:31 -0700 Subject: [PATCH] Replace namespace defeinition --- queries/cpp/highlights.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 7f4d0d83..8146800e 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -51,8 +51,12 @@ ;;; ---------------------------------------------------------------------------- ;; Types +(namespace_identifier) @namespace + ((namespace_identifier) @type - (.match? @type "^[A-Za-z]")) + (#lua-match? @type "^[A-Z]")) + +(using_declaration . "using" . "namespace" . [(qualified_identifier) (identifier)] @namespace) (auto) @type