From 034d9a479d50b8d4fec062c65c7cf66208326e15 Mon Sep 17 00:00:00 2001 From: Andreas Arvidsson Date: Fri, 1 May 2026 14:20:50 +0200 Subject: [PATCH] Added two new scope files for the Talon function call and callee --- .../fixtures/scopes/talon/functionCall2.scope | 20 +++++++++++++++++++ .../scopes/talon/functionCallee2.scope | 18 +++++++++++++++++ resources/queries/talon.scm | 1 + 3 files changed, 39 insertions(+) create mode 100644 resources/fixtures/scopes/talon/functionCall2.scope create mode 100644 resources/fixtures/scopes/talon/functionCallee2.scope diff --git a/resources/fixtures/scopes/talon/functionCall2.scope b/resources/fixtures/scopes/talon/functionCall2.scope new file mode 100644 index 0000000000..adceebb942 --- /dev/null +++ b/resources/fixtures/scopes/talon/functionCall2.scope @@ -0,0 +1,20 @@ +foo: + key(enter) +--- + +[Content] = +[Domain] = 1:4-1:14 + >----------< +1| key(enter) + +[Removal] = 0:4-1:14 + > +0| foo: +1| key(enter) + --------------< + +[Leading delimiter] = 1:0-1:4 + >----< +1| key(enter) + +[Insertion delimiter] = " " diff --git a/resources/fixtures/scopes/talon/functionCallee2.scope b/resources/fixtures/scopes/talon/functionCallee2.scope new file mode 100644 index 0000000000..7df235185f --- /dev/null +++ b/resources/fixtures/scopes/talon/functionCallee2.scope @@ -0,0 +1,18 @@ +foo: + key(enter) +--- + +[Content] = +[Removal] = 1:4-1:7 + >---< +1| key(enter) + +[Leading delimiter] = 1:0-1:4 + >----< +1| key(enter) + +[Domain] = 1:4-1:14 + >----------< +1| key(enter) + +[Insertion delimiter] = " " diff --git a/resources/queries/talon.scm b/resources/queries/talon.scm index 840dec0d8f..58d8849271 100644 --- a/resources/queries/talon.scm +++ b/resources/queries/talon.scm @@ -159,6 +159,7 @@ (key_action) (sleep_action) ] @functionCallee @_.domain + ;; There is no node just for the function callee, so we have to shrink the function call to just the callee (#shrink-to-match! @functionCallee "\\w+") )