Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions data/fixtures/scopes/talon/name.field.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
aaa [bbb]: bbb or ""
---

[Content] =
[Removal] = 0:0-0:9
>---------<
0| aaa [bbb]: bbb or ""

[Domain] = 0:0-0:20
>--------------------<
0| aaa [bbb]: bbb or ""

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/talon/value.field.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
aaa [bbb]: bbb or ""
---

[Content] = 0:11-0:20
>---------<
0| aaa [bbb]: bbb or ""

[Removal] = 0:10-0:20
>----------<
0| aaa [bbb]: bbb or ""

[Leading delimiter] = 0:10-0:11
>-<
0| aaa [bbb]: bbb or ""

[Domain] = 0:0-0:20
>--------------------<
0| aaa [bbb]: bbb or ""

[Insertion delimiter] = " "
2 changes: 2 additions & 0 deletions packages/common/src/scopeSupportFacets/talon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ const { supported } = ScopeSupportFacetLevel;

export const talonScopeSupport: LanguageScopeSupportFacetMap = {
command: supported,
"name.field": supported,
"value.field": supported,
};
29 changes: 19 additions & 10 deletions queries/talon.scm
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,37 @@
;;! ^^^^------------
;;!! tag(): user.cursorless
;;! ^^^^^-----------------
(_
left: _ @name
) @_.domain
(
(_
left: _ @name
) @_.domain
(#not-type? @_.domain "binary_operator")
)

;;!! not mode: command
;;! ^^^^^^^^---------
;;!! slap: key(enter)
;;! ^^^^------------
;;!! tag(): user.cursorless
;;! ^^^^^-----------------
(_
modifiers: (_)? @collectionKey.start
left: _ @collectionKey.end
) @_.domain
(
(_
modifiers: (_)? @collectionKey.start
left: _ @collectionKey.end
) @_.domain
(#not-type? @_.domain "binary_operator")
)

;;!! not mode: command
;;! ----------^^^^^^^
;;!! slap: key(enter)
;;! ------^^^^^^^^^^
(_
right: (_) @value
) @_.domain
(
(_
right: (_) @value
) @_.domain
(#not-type? @_.domain "binary_operator")
)

;;!! mode: command
;;! <*************
Expand Down
Loading