Skip to content

Commit 096ba76

Browse files
committed
fix: support multiline
1 parent 7c9fe3e commit 096ba76

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/1-parse/state

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/1-parse/state/tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function open(parser) {
280280
if (parser.match('(')) parentheses++;
281281
if (parser.match(')')) parentheses--;
282282

283-
var next_char = parser.read(/^./);
283+
var next_char = parser.read(/^(.|[\r\n])/);
284284
if (next_char == null) break; // end of template
285285
params += next_char;
286286
}

0 commit comments

Comments
 (0)