From b3869a7ba0a0df7d852dbf1efa1e43d2bd0077f9 Mon Sep 17 00:00:00 2001 From: Chris Dragan Date: Sat, 3 Jan 2026 22:48:32 +0000 Subject: [PATCH] update: add function.method.call --- runtime/queries/kos/highlights.scm | 4 ++++ tests/query/highlights/kos/test.kos | 7 +++++++ 2 files changed, 11 insertions(+) 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