File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/language-c/grammars/tree-sitter-cpp Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 124
124
(function_declarator
125
125
(identifier) @entity.name.function.cpp)
126
126
127
+ ; The "foo" in `void Bar::foo () {`.
128
+ (function_declarator
129
+ declarator: (qualified_identifier
130
+ name: (identifier) @entity.name.function.cpp))
131
+
127
132
(function_declarator
128
133
(field_identifier) @entity.name.function.method.cpp)
129
134
139
144
field: (field_identifier) @support.other.function.cpp)
140
145
(#set! capture.final true))
141
146
147
+ ; The "foo" in `troz::foo(...)`.
148
+ (call_expression
149
+ function: (qualified_identifier
150
+ name: (identifier) @support.other.function.cpp)
151
+ (#set! capture.final true))
152
+
142
153
(call_expression
143
154
(identifier) @support.other.function.cpp
144
155
(#set! capture.final true))
206
217
(assignment_expression
207
218
left: (identifier) @variable.other.assignment.cpp)
208
219
220
+ ; The "foo" in `bar.foo = "baz"`.
221
+ (assignment_expression
222
+ left: (field_expression
223
+ field: (field_identifier) @variable.other.member.assignment.cpp))
224
+
209
225
(reference_declarator
210
226
(identifier) @variable.declaration.cpp)
211
227
You can’t perform that action at this time.
0 commit comments