C: add goto to locals

This commit is contained in:
Santos Gallegos 2021-01-22 11:36:27 -05:00 committed by Thomas Vigouroux
parent f84c93c484
commit 00ad11eb2f

View file

@ -29,6 +29,9 @@
(struct_specifier (struct_specifier
name: (type_identifier) @definition.type) name: (type_identifier) @definition.type)
;; goto
(labeled_statement (statement_identifier) @definition)
;; References ;; References
(identifier) @reference (identifier) @reference
((field_identifier) @reference ((field_identifier) @reference
@ -36,6 +39,8 @@
((type_identifier) @reference ((type_identifier) @reference
(set! reference.kind "type")) (set! reference.kind "type"))
(goto_statement (statement_identifier) @reference)
;; Scope ;; Scope
[ [
(for_statement) (for_statement)