|
|
@ -283,6 +283,8 @@ function readTagName(parser: Parser) {
|
|
|
|
const start = parser.index;
|
|
|
|
const start = parser.index;
|
|
|
|
|
|
|
|
|
|
|
|
if (parser.read(SELF)) {
|
|
|
|
if (parser.read(SELF)) {
|
|
|
|
|
|
|
|
parser.index -= 1;
|
|
|
|
|
|
|
|
|
|
|
|
// check we're inside a block, otherwise this
|
|
|
|
// check we're inside a block, otherwise this
|
|
|
|
// will cause infinite recursion
|
|
|
|
// will cause infinite recursion
|
|
|
|
let i = parser.stack.length;
|
|
|
|
let i = parser.stack.length;
|
|
|
@ -306,7 +308,10 @@ function readTagName(parser: Parser) {
|
|
|
|
return 'svelte:self';
|
|
|
|
return 'svelte:self';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (parser.read(COMPONENT)) return 'svelte:component';
|
|
|
|
if (parser.read(COMPONENT)) {
|
|
|
|
|
|
|
|
parser.index -= 1;
|
|
|
|
|
|
|
|
return 'svelte:component';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const name = parser.readUntil(/(\s|\/|>)/);
|
|
|
|
const name = parser.readUntil(/(\s|\/|>)/);
|
|
|
|
|
|
|
|
|
|
|
|