Skip to content

Commit 3775afd

Browse files
Allow multiple units
1 parent 098665b commit 3775afd

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

data/fixtures/recorded/languages/css/clearUnit5.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
languageId: css
22
command:
3-
version: 7
4-
spokenForm: change every unit
3+
version: 6
4+
spokenForm: change unit
55
action:
66
name: clearAndSetSelection
77
target:
88
type: primitive
99
modifiers:
10-
- type: everyScope
10+
- type: containingScope
1111
scopeType: {type: unit}
12-
usePrePhraseSnapshot: false
12+
usePrePhraseSnapshot: true
1313
initialState:
1414
documentContents: |-
1515
div {
1616
padding: 25px 50px 75px 100px;
1717
}
18+
1819
selections:
1920
- anchor: {line: 1, character: 4}
2021
active: {line: 1, character: 4}
@@ -24,6 +25,7 @@ finalState:
2425
div {
2526
padding: 25 50 75 100;
2627
}
28+
2729
selections:
2830
- anchor: {line: 1, character: 15}
2931
active: {line: 1, character: 15}

queries/css.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
(#allow-multiple! @unit)
9898
) @_.domain
9999

100+
(integer_value
101+
(unit) @unit
102+
) @_.domain
103+
100104
;;!! @namespace prefix "XML-namespace-URL";
101105
;;! ^^^^^^^^^^^^^^^^^^^^^^^^^^
102106
(namespace_statement

0 commit comments

Comments
 (0)