languages: Include namespace in the outline for C++ (#45794)

Before: 

<img width="389" height="147" alt="image"
src="https://github.com/user-attachments/assets/5412bde6-2f1b-4bb4-a06f-111724597372"
/>

After:
<img width="404" height="139" alt="image"
src="https://github.com/user-attachments/assets/8f906245-4c6e-4cf0-bb32-1b47048f46c0"
/>


Release Notes:

- Include namespace symbol in the outline view for C++.
This commit is contained in:
Haojian Wu 2026-01-05 22:13:08 +01:00 committed by GitHub
parent 0e5b6a5f3f
commit 6625997e0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,11 @@
"(" @context
")" @context)) @item
(namespace_definition
"inline"? @context
"namespace" @context
name: (_) @name) @item
(type_definition
"typedef" @context
declarator: (_) @name) @item