Skip to content

Commit 510ec90

Browse files
css
1 parent 75d4922 commit 510ec90

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* {
2+
width: calc();
3+
}
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:14-1:14
8+
><
9+
1| width: calc();
10+
11+
[Domain] = 1:9-1:15
12+
>------<
13+
1| width: calc();
14+
15+
[Insertion delimiter] = ""
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* {
2+
width: calc(100% - 50px);
3+
}
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:14-1:25
8+
>-----------<
9+
1| width: calc(100% - 50px);
10+
11+
[Domain] = 1:9-1:26
12+
>-----------------<
13+
1| width: calc(100% - 50px);
14+
15+
[Insertion delimiter] = ", "

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
1515
"argument.actual": supported,
1616
"argument.actual.iteration": supported,
1717

18+
"argumentList.actual.empty": supported,
19+
"argumentList.actual.singleLine": supported,
20+
1821
"name.iteration.document": supported,
1922
"name.iteration.block": supported,
2023

@@ -48,6 +51,13 @@ export const cssScopeSupport: LanguageScopeSupportFacetMap = {
4851
"argument.formal": notApplicable,
4952
"argument.formal.lambda": notApplicable,
5053
"argument.formal.lambda.iteration": notApplicable,
54+
"argumentList.actual.multiLine": notApplicable,
55+
"argumentList.actual.method.empty": notApplicable,
56+
"argumentList.actual.method.singleLine": notApplicable,
57+
"argumentList.actual.method.multiLine": notApplicable,
58+
"argumentList.actual.constructor.empty": notApplicable,
59+
"argumentList.actual.constructor.singleLine": notApplicable,
60+
"argumentList.actual.constructor.multiLine": notApplicable,
5161
"argumentList.formal.empty": notApplicable,
5262
"argumentList.formal.singleLine": notApplicable,
5363
"argumentList.formal.multiLine": notApplicable,

queries/css.scm

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@
9090

9191
(_
9292
(arguments
93-
"(" @argumentOrParameter.iteration.start.endOf
94-
")" @argumentOrParameter.iteration.end.startOf
95-
)
96-
) @argumentOrParameter.iteration.domain
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")
97+
) @argumentList.domain @argumentOrParameter.iteration.domain
9798

9899
;; Entire file
99100
(

0 commit comments

Comments
 (0)