Fix calls.
This commit is contained in:
parent
4bc89d5ca3
commit
bae90b8b80
@ -560,6 +560,18 @@ ParenthesizedExpression:
|
||||
|
||||
# Calls
|
||||
Call:
|
||||
rules:
|
||||
- ParenthesesCall
|
||||
- NonParenthesesCall
|
||||
ParenthesesCall:
|
||||
children:
|
||||
- turbo_fish:
|
||||
optional: true
|
||||
- expression_list:
|
||||
optional: true
|
||||
- closure:
|
||||
optional: true
|
||||
NonParenthesesCall:
|
||||
children:
|
||||
- turbo_fish:
|
||||
optional: true
|
||||
|
@ -755,6 +755,11 @@ ParenthesizedExpression = {
|
||||
// Calls
|
||||
|
||||
Call = {
|
||||
ParenthesesCall
|
||||
| NonParenthesesCall
|
||||
}
|
||||
|
||||
ParenthesesCall = {
|
||||
TurboFish?
|
||||
~ "("
|
||||
~ ExpressionList?
|
||||
@ -762,6 +767,15 @@ Call = {
|
||||
~ Closure?
|
||||
}
|
||||
|
||||
NonParenthesesCall = {
|
||||
TurboFish?
|
||||
~ (
|
||||
Closure
|
||||
| ExpressionList
|
||||
| ExpressionList ~ Closure
|
||||
)
|
||||
}
|
||||
|
||||
TurboFish = {
|
||||
"::"
|
||||
~ GenericArguments
|
||||
|
Loading…
Reference in New Issue
Block a user