Skip to content

Commit 1b8f3ee

Browse files
committed
fix: Fix arguments of call expression
1 parent 0107fda commit 1b8f3ee

File tree

7 files changed

+9771
-9835
lines changed

7 files changed

+9771
-9835
lines changed

grammar.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,7 @@ module.exports = grammar(HTML, {
570570
),
571571
),
572572
arguments: ($) =>
573-
seq(
574-
choice($._primitive, $.binary_expression, $.unary_expression),
575-
repeat(seq(',', $._primitive)),
576-
),
573+
commaSep1(choice($.expression, $.binary_expression, $.unary_expression)),
577574

578575
// Member expression
579576
member_expression: ($) =>

src/grammar.json

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

Lines changed: 1 addition & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)