Skip to content

Commit 273dcb7

Browse files
css
1 parent c485db8 commit 273dcb7

File tree

3 files changed

+43
-5
lines changed

3 files changed

+43
-5
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
* {
2+
clip-path: polygon(
3+
50% 0%,
4+
60% 40%
5+
);
6+
}
7+
---
8+
9+
[Content] = 2:4-3:11
10+
>-------
11+
2| 50% 0%,
12+
3| 60% 40%
13+
-----------<
14+
15+
[Removal] = 1:21-4:2
16+
>
17+
1| clip-path: polygon(
18+
2| 50% 0%,
19+
3| 60% 40%
20+
4| );
21+
--<
22+
23+
[Leading delimiter] = 2:0-2:4
24+
>----<
25+
2| 50% 0%,
26+
27+
[Domain] = 1:13-4:3
28+
>--------
29+
1| clip-path: polygon(
30+
2| 50% 0%,
31+
3| 60% 40%
32+
4| );
33+
---<
34+
35+
[Insertion delimiter] = ",\n"

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
1717

1818
"argumentList.actual.empty": supported,
1919
"argumentList.actual.singleLine": supported,
20+
"argumentList.actual.multiLine": supported,
2021

2122
"name.iteration.document": supported,
2223
"name.iteration.block": supported,
@@ -51,7 +52,6 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
5152
"argument.formal": notApplicable,
5253
"argument.formal.lambda": notApplicable,
5354
"argument.formal.lambda.iteration": notApplicable,
54-
"argumentList.actual.multiLine": notApplicable,
5555
"argumentList.actual.method.empty": notApplicable,
5656
"argumentList.actual.method.singleLine": notApplicable,
5757
"argumentList.actual.method.multiLine": notApplicable,

queries/css.scm

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,15 @@
8888
(#insertion-delimiter! @argumentOrParameter ", ")
8989
)
9090

91+
;;!! translate(-50%, -50%)
92+
;;! ^^^^^^^^^^
9193
(_
9294
(arguments
93-
"(" @argumentList.start.endOf @argumentOrParameter.iteration.start.endOf
94-
")" @argumentList.end.startOf @argumentOrParameter.iteration.end.startOf
95-
) @_dummy
96-
(#empty-single-multi-delimiter! @argumentList.start.endOf @_dummy "" ", " ",\n")
95+
"(" @argumentList.removal.start.endOf @argumentOrParameter.iteration.start.endOf
96+
")" @argumentList.removal.end.startOf @argumentOrParameter.iteration.end.startOf
97+
) @argumentList
98+
(#child-range! @argumentList 1 -2)
99+
(#empty-single-multi-delimiter! @argumentList @argumentList "" ", " ",\n")
97100
) @argumentList.domain @argumentOrParameter.iteration.domain
98101

99102
;; Entire file

0 commit comments

Comments
 (0)