Skip to content

Commit e752bdd

Browse files
fix(compiler-core): fix slot source location (#3494)
1 parent 2121c32 commit e752bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-core/src/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ function parseAttribute(
623623

624624
if (match[2]) {
625625
const isSlot = dirName === 'slot'
626-
const startOffset = name.indexOf(match[2])
626+
const startOffset = name.lastIndexOf(match[2])
627627
const loc = getSelection(
628628
context,
629629
getNewPosition(context, start, startOffset),

0 commit comments

Comments
 (0)