scope arities in captures as operators

This commit is contained in:
Michael Davis 2021-10-15 17:39:05 -05:00
parent 80b54f2f69
commit 4d8eb09b7c
No known key found for this signature in database
GPG key ID: 25D3AFE4BA2A0C49

View file

@ -48,10 +48,17 @@
(nil) @variable.property
])
; * capture operand
; * capture operator
(unary_operator
operator: "&"
operand: (integer) @operator)
operand: [
(integer) @operator
(binary_operator
left: [
(call target: (dot left: (_) right: (identifier) @function))
(identifier) @function
] operator: "/" right: (integer) @operator)
])
(operator_identifier) @operator