Skip to content

Commit 6f44585

Browse files
committed
highlight the combinator, not the start of the combinator
1 parent 64e1b09 commit 6f44585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const css_visitors = {
124124
parent.children[0] === node &&
125125
context.path.at(-3)?.type !== 'PseudoClassSelector'
126126
) {
127-
e.css_selector_invalid(node.start); // only highlight the combinator
127+
e.css_selector_invalid(node.combinator);
128128
}
129129

130130
node.metadata.is_global = node.selectors.length >= 1 && is_global(node);

0 commit comments

Comments
 (0)