aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index c026d54bf..30c4b75d2 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -28,14 +28,16 @@
name: (scoped_identifier
name: (identifier) @function))
-(namespace_identifier) @constant
((identifier) @type (#match? @type "^[A-Z]"))
+(namespace_identifier) @namespace
((namespace_identifier) @type
(#match? @type "^[A-Z]"))
((namespace_identifier) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
+(namespace_definition
+ name: (identifier) @namespace)
(destructor_name
name: (_) @function)