Skip to content

Commit af492b7

Browse files
committed
fix: add alias for nested_identifiers from javascript grammar
This will keep query compatibility
1 parent a232b3a commit af492b7

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
@@ -237,7 +237,7 @@ module.exports = function defineGrammar(dialect) {
237237
seq(
238238
field('name', choice(
239239
$.identifier,
240-
$.nested_identifier
240+
alias($.nested_identifier, $.member_expression),
241241
)),
242242
field('type_arguments', optional($.type_arguments))
243243
)

0 commit comments

Comments
 (0)