Fix custom syntax with method calls.

This commit is contained in:
Stephen Chung
2021-12-16 22:40:10 +08:00
parent 224aa0ea68
commit 10fa6844c4
4 changed files with 37 additions and 27 deletions

View File

@@ -2421,7 +2421,8 @@ impl Expr {
| Self::Dot(_, _, _)
| Self::Index(_, _, _)
| Self::Array(_, _)
| Self::Map(_, _) => match token {
| Self::Map(_, _)
| Self::Custom(_, _) => match token {
#[cfg(not(feature = "no_index"))]
Token::LeftBracket => true,
_ => false,
@@ -2443,8 +2444,6 @@ impl Expr {
_ => false,
},
Self::Custom(_, _) => false,
Self::Stack(_, _) => false,
}
}