18 lines
570 B
Scheme
18 lines
570 B
Scheme
; extends
|
|
;; key/value-like types. Works with struct values, struct definitions and parameter value/type pairs:
|
|
;;
|
|
;; @keyed_element.outer => key and value
|
|
;; @keyed_element.inner => value
|
|
|
|
(keyed_element . ((_) @kv_element.key))
|
|
(keyed_element ((_) @kv_element.value) .)
|
|
(keyed_element) @kv_element.all
|
|
|
|
(parameter_declaration) @kv_element.all
|
|
(parameter_declaration . ((_) @kv_element.key))
|
|
(parameter_declaration ((_) @kv_element.value) .)
|
|
|
|
(field_declaration) @kv_element.all
|
|
(field_declaration . ((_) @kv_element.key))
|
|
(field_declaration ((_) @kv_element.value) .)
|