Skip to content

Commit

Permalink
improve consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Jan 31, 2024
1 parent 71c5288 commit c12e776
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,40 @@ with aaa, bbb as ccc:
pass
---

[#1 Content] = 0:17-0:20
[#1.1 Content] = 0:5-0:8
0| with aaa, bbb as ccc:
>---<

[#1.1 Removal] = 0:5-0:10
0| with aaa, bbb as ccc:
>-----<

[#1.1 Trailing delimiter] = 0:8-0:10
0| with aaa, bbb as ccc:
>--<

[#1.1 Insertion delimiter] = " "

[#1.2 Content] = 0:17-0:20
0| with aaa, bbb as ccc:
>---<

[#1 Removal] = 0:13-0:20
[#1.2 Removal] = 0:13-0:20
0| with aaa, bbb as ccc:
>-------<

[#1 Leading delimiter] = 0:13-0:17
[#1.2 Leading delimiter] = 0:13-0:17
0| with aaa, bbb as ccc:
>----<

[#1.2 Insertion delimiter] = " "

[#1 Domain] = 0:0-1:8
0| with aaa, bbb as ccc:
>---------------------
1| pass
--------<

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Domain] = 0:5-0:8
Expand Down
3 changes: 2 additions & 1 deletion queries/python.scm
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,15 @@
(with_item)? @_.leading.endOf
.
(with_item
value: (_) @value
value: (_) @value @name
)
.
(with_item)? @_.trailing.startOf
)
) @_.domain
(#not-type? @value "as_pattern")
(#allow-multiple! @value)
(#allow-multiple! @name)
)

;;!! with aaa:
Expand Down

0 comments on commit c12e776

Please sign in to comment.