diff --git a/runtime/queries/kos/highlights.scm b/runtime/queries/kos/highlights.scm index 64860e770..0942b2b89 100644 --- a/runtime/queries/kos/highlights.scm +++ b/runtime/queries/kos/highlights.scm @@ -135,3 +135,7 @@ (invocation (identifier) @function.call) + +(invocation + (refinement + property: (property_identifier) @function.method.call)) diff --git a/tests/query/highlights/kos/test.kos b/tests/query/highlights/kos/test.kos index 6ab57ebca..981fdb313 100644 --- a/tests/query/highlights/kos/test.kos +++ b/tests/query/highlights/kos/test.kos @@ -140,3 +140,10 @@ name(42) # ^ punctuation.bracket # ^ number # ^ punctuation.bracket + +name.name() +# <- variable +# ^ punctuation.delimiter +# ^ function.method.call +# ^ punctuation.bracket +# ^ punctuation.bracket