aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sabadie2023-06-07 23:13:39 +0000
committerGitHub2023-06-07 23:13:39 +0000
commit31b8b728a2ba5585a66da4f3dab279b08bd5600a (patch)
tree4c4f0e31c17f919d6fdb0992131d22c2395fe7ca
parentef5bcd5060e6298a2deae53a7c29514d4a50a2fc (diff)
Fix C++ queries and update tree-sitter-cpp (#7285)
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/cpp/highlights.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/languages.toml b/languages.toml
index 28669c55..868abd96 100644
--- a/languages.toml
+++ b/languages.toml
@@ -372,7 +372,7 @@ args = { console = "internalConsole", attachCommands = [ "platform select remote
[[grammar]]
name = "cpp"
-source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "2d2c4aee8672af4c7c8edff68e7dd4c07e88d2b1" }
+source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "670404d7c689be1c868a46f919ba2a3912f2b7ef" }
[[language]]
name = "crystal"
diff --git a/runtime/queries/cpp/highlights.scm b/runtime/queries/cpp/highlights.scm
index 8637489e..509dcdf7 100644
--- a/runtime/queries/cpp/highlights.scm
+++ b/runtime/queries/cpp/highlights.scm
@@ -32,7 +32,7 @@
(using_declaration ("using" "namespace" (identifier) @namespace))
(using_declaration ("using" "namespace" (qualified_identifier name: (identifier) @namespace)))
-(namespace_definition name: (identifier) @namespace)
+(namespace_definition name: (namespace_identifier) @namespace)
(namespace_identifier) @namespace
(qualified_identifier name: (identifier) @type.enum.variant)