Skip to content

Commit 516ca53

Browse files
committed
revert precedence in extension_expression
1 parent 0b28ab8 commit 516ca53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

grammar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module.exports = grammar({
8686
[$._record_field_name, $.record_pattern],
8787
[$.decorator],
8888
[$._statement, $._one_or_more_statements],
89+
[$.extension_expression],
8990
[$._inline_type, $.function_type_parameters],
9091
[$.primary_expression, $.parameter, $._pattern],
9192
[$.parameter, $._pattern],
@@ -1134,7 +1135,7 @@ module.exports = grammar({
11341135
))
11351136
)),
11361137

1137-
extension_expression: $ => prec.right(seq(
1138+
extension_expression: $ => prec('call', seq(
11381139
repeat1('%'),
11391140
$.extension_identifier,
11401141
optional(

0 commit comments

Comments
 (0)