Skip to content

Commit

Permalink
fix(compiler-core): fix slot source location (#3494)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk authored Mar 27, 2021
1 parent 2121c32 commit e752bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ function parseAttribute(

if (match[2]) {
const isSlot = dirName === 'slot'
const startOffset = name.indexOf(match[2])
const startOffset = name.lastIndexOf(match[2])
const loc = getSelection(
context,
getNewPosition(context, start, startOffset),
Expand Down

0 comments on commit e752bdd

Please sign in to comment.