Support union declarations in C/C++ textobjects.scm (#45308)

Release Notes:

- C/C++: Add `union` declarations to the list of text objects
This commit is contained in:
Haojian Wu
2025-12-19 23:37:13 +01:00
committed by GitHub
parent 1c576ccf82
commit 895213a94d
2 changed files with 12 additions and 0 deletions

View File

@@ -23,3 +23,9 @@
"{"
[(_) ","?]* @class.inside
"}")) @class.around
(union_specifier
body: (_
"{"
(_)* @class.inside
"}")) @class.around

View File

@@ -24,6 +24,12 @@
[(_) ","?]* @class.inside
"}")) @class.around
(union_specifier
body: (_
"{"
(_)* @class.inside
"}")) @class.around
(class_specifier
body: (_
"{"