Skip to content

Commit d63fbd4

Browse files
committed
chore: allow import in call expressions like js
1 parent 8106351 commit d63fbd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/define-grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ module.exports = function defineGrammar(dialect) {
164164

165165
call_expression: $ => choice(
166166
prec('call', seq(
167-
field('function', $.expression),
167+
field('function', choice($.expression, $.import)),
168168
field('type_arguments', optional($.type_arguments)),
169169
field('arguments', choice($.arguments, $.template_string))
170170
)),

0 commit comments

Comments
 (0)